Index: tools/clang/blink_gc_plugin/tests/polymorphic_class_with_non_virtual_trace.txt |
diff --git a/tools/clang/blink_gc_plugin/tests/polymorphic_class_with_non_virtual_trace.txt b/tools/clang/blink_gc_plugin/tests/polymorphic_class_with_non_virtual_trace.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..38f2e77f6318c5c60dd3f39403626495e772b6fd |
--- /dev/null |
+++ b/tools/clang/blink_gc_plugin/tests/polymorphic_class_with_non_virtual_trace.txt |
@@ -0,0 +1,8 @@ |
+In file included from polymorphic_class_with_non_virtual_trace.cpp:5: |
+./polymorphic_class_with_non_virtual_trace.h:17:1: warning: [blink-gc] Left-most base class 'NonPolymorphicBase' of derived class 'IsNotLeftMostPolymorphic' must be polymorphic. |
+class NonPolymorphicBase { |
+^ |
+./polymorphic_class_with_non_virtual_trace.h:45:1: warning: [blink-gc] Left-most base class 'TemplatedNonPolymorphicBase<blink::TemplatedIsNotLeftMostPolymorphic>' of derived class 'TemplatedIsNotLeftMostPolymorphic' must be polymorphic. |
+class TemplatedNonPolymorphicBase |
+^ |
+2 warnings generated. |