blob: e2ec3a860ac1de27a3e7d987b6954ff2859145ce [file] [log] [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "templated_class_with_local_class_requires_trace.h"
namespace blink {
template <typename T>
void TemplatedObject<T>::Trace(Visitor* visitor) const {
visitor->Trace(m_local);
visitor->Trace(m_memberRef);
}
class Test {
public:
static void test() {
HeapObject* obj = MakeGarbageCollected<HeapObject>();
TemplatedObject<HeapObject>* instance =
MakeGarbageCollected<TemplatedObject<HeapObject>>(obj);
}
};
} // namespace blink