aboutsummaryrefslogtreecommitdiff
path: root/tools/clang/blink_gc_plugin/tests/base_requires_tracing.cpp
blob: 474be5188c054e1690029d79b1a8b423b327e577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base_requires_tracing.h"

namespace blink {

void A::Trace(Visitor* visitor) { }

void C::Trace(Visitor* visitor) {
  visitor->Trace(m_a);
  // Missing B::trace(visitor)
}

void D::Trace(Visitor* visitor) {
  visitor->Trace(m_a);
  C::Trace(visitor);
}

}