aboutsummaryrefslogtreecommitdiff
path: root/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h
blob: ef5a649d167ec9e01e5e85e4052c02f3a67944ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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.

#ifndef PART_OBJECT_TO_GC_DERIVED_CLASS_H_
#define PART_OBJECT_TO_GC_DERIVED_CLASS_H_

#include "heap/stubs.h"

namespace blink {

class A : public GarbageCollected<A> { };

class B : public GarbageCollected<B> {
public:
    void trace(Visitor*);
private:
    A m_a;
};

}

#endif