Index: tools/clang/blink_gc_plugin/tests/trace_if_needed.cpp |
diff --git a/tools/clang/blink_gc_plugin/tests/ignore_fields.cpp b/tools/clang/blink_gc_plugin/tests/trace_if_needed.cpp |
similarity index 52% |
copy from tools/clang/blink_gc_plugin/tests/ignore_fields.cpp |
copy to tools/clang/blink_gc_plugin/tests/trace_if_needed.cpp |
index 118af75424a6ec892fcd4c9bba743b5bb1ebec56..563c6cc125f46a0a3328c06b61ac2b0c744331a8 100644 |
--- a/tools/clang/blink_gc_plugin/tests/ignore_fields.cpp |
+++ b/tools/clang/blink_gc_plugin/tests/trace_if_needed.cpp |
@@ -2,14 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "ignore_fields.h" |
+#include "trace_if_needed.h" |
namespace blink { |
-void C::trace(Visitor* visitor) |
+template<typename T> |
+void TemplatedObject<T>::trace(Visitor* visitor) |
{ |
- // Missing trace of m_one. |
- // Not missing ignored field m_two. |
+ TraceIfNeeded<T>::trace(visitor, &m_one); |
+ // Missing trace of m_two |
} |
} |