Index: tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h |
diff --git a/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ef5a649d167ec9e01e5e85e4052c02f3a67944ce |
--- /dev/null |
+++ b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PART_OBJECT_TO_GC_DERIVED_CLASS_H_ |
+#define PART_OBJECT_TO_GC_DERIVED_CLASS_H_ |
+ |
+#include "heap/stubs.h" |
+ |
+namespace blink { |
+ |
+class A : public GarbageCollected<A> { }; |
+ |
+class B : public GarbageCollected<B> { |
+public: |
+ void trace(Visitor*); |
+private: |
+ A m_a; |
+}; |
+ |
+} |
+ |
+#endif |