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

Unified Diff: tools/clang/blink_gc_plugin/tests/left_most_gc_base.h

Issue 840623002: Do not iterate past the end on processing leaf class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: tools/clang/blink_gc_plugin/tests/left_most_gc_base.h
diff --git a/tools/clang/blink_gc_plugin/tests/left_most_gc_base.h b/tools/clang/blink_gc_plugin/tests/left_most_gc_base.h
index f9bc6dd13b69b8dc6b8636c7b240a624f7729795..0d76d6161f4046e0651f0fbda3d72f447c08f279 100644
--- a/tools/clang/blink_gc_plugin/tests/left_most_gc_base.h
+++ b/tools/clang/blink_gc_plugin/tests/left_most_gc_base.h
@@ -18,6 +18,13 @@ class Left : public GarbageCollected<Left>, public B, public A { };
class DerivedRight : public Right, public Left { }; // Error
class DerivedLeft : public Left, public Right { };
+class C : public GarbageCollected<C> {
+public:
+ virtual void trace(Visitor*);
+};
+
+class IllFormed : public A, public C { }; // Error
+
}
#endif
« no previous file with comments | « tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp ('k') | tools/clang/blink_gc_plugin/tests/left_most_gc_base.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698