Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: tools/clang/blink_gc_plugin/tests/templated_class_with_local_class_requires_trace.cpp

Issue 827693004: Blink GC plugin: improve handling of type dependent bases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698