Home | History | Annotate | Download | only in tests
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "templated_class_with_local_class_requires_trace.h"
      6 
      7 namespace blink {
      8 
      9 template<typename T>
     10 void TemplatedObject<T>::Trace(Visitor* visitor)
     11 {
     12     visitor->Trace(m_local);
     13     visitor->Trace(m_memberRef);
     14 }
     15 
     16 class Test {
     17 public:
     18     static void test()
     19     {
     20         HeapObject* obj = new HeapObject();
     21         TemplatedObject<HeapObject>* instance =
     22             new TemplatedObject<HeapObject>(obj);
     23     }
     24 };
     25 
     26 } // namespace blink
     27