| Index: tools/clang/blink_gc_plugin/tests/cycle_super.cpp
|
| diff --git a/tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp b/tools/clang/blink_gc_plugin/tests/cycle_super.cpp
|
| similarity index 57%
|
| copy from tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp
|
| copy to tools/clang/blink_gc_plugin/tests/cycle_super.cpp
|
| index 0f7cb99f4772d0fb6585e032821da842595d5b0a..41359ed04c4188351c05b2c7d11da8857f420398 100644
|
| --- a/tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp
|
| +++ b/tools/clang/blink_gc_plugin/tests/cycle_super.cpp
|
| @@ -2,13 +2,20 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "pure_virtual_trace.h"
|
| +#include "cycle_super.h"
|
|
|
| namespace WebCore {
|
|
|
| +void A::trace(Visitor* visitor) {
|
| + visitor->trace(m_d);
|
| +}
|
| +
|
| +void B::trace(Visitor* visitor) {
|
| + A::trace(visitor);
|
| +}
|
| +
|
| void C::trace(Visitor* visitor) {
|
| - visitor->trace(m_a);
|
| - // Is not required to trace base classes B and A.
|
| + B::trace(visitor);
|
| }
|
|
|
| }
|
|
|