Home | History | Annotate | Download | only in tests
      1 In file included from stack_allocated.cpp:5:
      2 ./stack_allocated.h:14:1: warning: [blink-gc] Class 'PartObject' requires a trace method.
      3 class PartObject {
      4 ^
      5 ./stack_allocated.h:17:5: note: [blink-gc] Untraced field 'm_obj' declared here:
      6     Member<HeapObject> m_obj; // Needs tracing.
      7     ^
      8 ./stack_allocated.h:26:1: warning: [blink-gc] Class 'HeapObject' contains invalid fields.
      9 class HeapObject : public GarbageCollected<HeapObject> {
     10 ^
     11 ./stack_allocated.h:30:5: note: [blink-gc] Stack-allocated field 'm_part' declared here:
     12     StackObject m_part; // Cannot embed a stack allocated object.
     13     ^
     14 ./stack_allocated.h:34:27: warning: [blink-gc] Stack-allocated class 'DerivedHeapObject' derives class 'HeapObject' which is garbage collected.
     15 class DerivedHeapObject : public HeapObject, public StackObject {
     16                           ^
     17 ./stack_allocated.h:38:28: warning: [blink-gc] Stack-allocated class 'DerivedHeapObject2' derives class 'HeapObject' which is garbage collected.
     18 class DerivedHeapObject2 : public HeapObject {
     19                            ^
     20 ./stack_allocated.h:39:3: warning: [blink-gc] Garbage collected class 'DerivedHeapObject2' is not permitted to override its new operator.
     21   STACK_ALLOCATED();
     22   ^
     23 ./heap/stubs.h:149:5: note: expanded from macro 'STACK_ALLOCATED'
     24     __attribute__((annotate("blink_stack_allocated")))      \
     25     ^
     26 stack_allocated.cpp:12:1: warning: [blink-gc] Class 'AnonStackObject' contains invalid fields.
     27 class AnonStackObject : public StackObject {
     28 ^
     29 stack_allocated.cpp:14:5: note: [blink-gc] Raw pointer field 'm_obj' to a GC managed class declared here:
     30     HeapObject* m_obj;
     31     ^
     32 6 warnings generated.
     33