| Index: tools/clang/blink_gc_plugin/tests/trace_templated_super.h
 | 
| diff --git a/tools/clang/blink_gc_plugin/tests/trace_templated_super.h b/tools/clang/blink_gc_plugin/tests/trace_templated_super.h
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..de8fd7b4c58d1e73b485cfefd23db643d459c835
 | 
| --- /dev/null
 | 
| +++ b/tools/clang/blink_gc_plugin/tests/trace_templated_super.h
 | 
| @@ -0,0 +1,47 @@
 | 
| +// 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 TRACE_TEMPLATED_SUPER_H_
 | 
| +#define TRACE_TEMPLATED_SUPER_H_
 | 
| +
 | 
| +#include "heap/stubs.h"
 | 
| +
 | 
| +namespace blink {
 | 
| +
 | 
| +class HeapObject;
 | 
| +
 | 
| +class Mixin : public GarbageCollectedMixin {
 | 
| +public:
 | 
| +    virtual void trace(Visitor*) override { }
 | 
| +};
 | 
| +
 | 
| +template<typename T>
 | 
| +class Super : public GarbageCollected<Super<T> >, public Mixin {
 | 
| +    USING_GARBAGE_COLLECTED_MIXIN(Super);
 | 
| +public:
 | 
| +    virtual void trace(Visitor*) override;
 | 
| +    void clearWeakMembers(Visitor*);
 | 
| +private:
 | 
| +    Member<HeapObject> m_obj;
 | 
| +    WeakMember<HeapObject> m_weak;
 | 
| +};
 | 
| +
 | 
| +template<typename T>
 | 
| +class Sub : public Super<T> {
 | 
| +public:
 | 
| +    virtual void trace(Visitor* visitor) override;
 | 
| +private:
 | 
| +    Member<HeapObject> m_obj;
 | 
| +};
 | 
| +
 | 
| +class HeapObject : public Sub<HeapObject> {
 | 
| +public:
 | 
| +    virtual void trace(Visitor*) override;
 | 
| +private:
 | 
| +    Member<HeapObject> m_obj;
 | 
| +};
 | 
| +
 | 
| +}
 | 
| +
 | 
| +#endif
 | 
| 
 |