Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.h

Issue 1160963003: GC Plugin: test destructor access of part object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update expected output Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.h
diff --git a/tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.h b/tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.h
index 232eb08218f3f4dc64467296bb7781393dd2a066..4c721568aa6a0f34d7f3ca6c12d9cd9a5bbbc50a 100644
--- a/tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.h
+++ b/tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.h
@@ -14,6 +14,19 @@ public:
bool foo() { return true; }
};
+class HeapObject;
+
+class PartOther {
+ ALLOW_ONLY_INLINE_ALLOCATION();
+public:
+ void trace(Visitor*);
+
+ HeapObject* obj() { return m_obj; }
+
+private:
+ Member<HeapObject> m_obj;
+};
+
class HeapObject : public GarbageCollectedFinalized<HeapObject> {
public:
~HeapObject();
@@ -24,6 +37,7 @@ private:
RefPtr<Other> m_ref;
Member<HeapObject> m_obj;
Vector<Member<HeapObject> > m_objs;
+ PartOther m_part;
};
}
« no previous file with comments | « no previous file | tools/clang/blink_gc_plugin/tests/destructor_access_finalized_field.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698