diff options
Diffstat (limited to 'tools/clang/blink_gc_plugin/tests/legacy_naming/part_object_to_gc_derived_class.h')
-rw-r--r-- | tools/clang/blink_gc_plugin/tests/legacy_naming/part_object_to_gc_derived_class.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/clang/blink_gc_plugin/tests/legacy_naming/part_object_to_gc_derived_class.h b/tools/clang/blink_gc_plugin/tests/legacy_naming/part_object_to_gc_derived_class.h new file mode 100644 index 00000000..ef5a649d --- /dev/null +++ b/tools/clang/blink_gc_plugin/tests/legacy_naming/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 |