Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / tools / clang / blink_gc_plugin / tests / destructor_access_finalized_field.cpp
blob79cbce77531701870fea354eb51ea4c8be52c71f
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.
5 #include "destructor_access_finalized_field.h"
7 namespace blink {
9 HeapObject::~HeapObject()
11 // Valid access to fields.
12 if (m_ref->foo() && !m_obj)
13 m_objs.size();
15 // Invalid access to fields.
16 bar(m_obj);
17 m_obj->foo();
18 m_objs[0];
21 void HeapObject::trace(Visitor* visitor)
23 visitor->trace(m_obj);
24 visitor->trace(m_objs);