Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.txt

Issue 292743006: Blink GC plugin: disallow GC derived types as part-object fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: support for mixin part objects Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.txt
diff --git a/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.txt b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.txt
new file mode 100644
index 0000000000000000000000000000000000000000..59701329b5384e8588ea08ac765f9f50e4cde6ab
--- /dev/null
+++ b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.txt
@@ -0,0 +1,8 @@
+In file included from part_object_to_gc_derived_class.cpp:5:
+./part_object_to_gc_derived_class.h:14:1: warning: [blink-gc] Class 'B' contains invalid fields.
+class B : public GarbageCollected<B> {
+^
+./part_object_to_gc_derived_class.h:18:5: note: [blink-gc] Part-object field 'm_a' to a GC derived class declared here:
+ A m_a;
+ ^
+1 warning generated.
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698