Home | History | Annotate | Download | only in PowerPC
      1 # Verify that we don't follow DW_AT_sibling references.
      2 #
      3 # Source:
      4 #   struct A { };
      5 #   struct B { };
      6 #
      7 #   struct C {
      8 #     A a;
      9 #   };
     10 #
     11 #   B b;
     12 #   C c;
     13 #
     14 # Compiled with Apple-GCC 4.0.1 (build 5370):
     15 #   g++ -g -c sibling.cpp -o sibling.o
     16 
     17 # RUN: dsymutil -arch ppc -f -oso-prepend-path=%p/../Inputs/ -y %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s
     18 
     19 # CHECK: DW_TAG_structure_type
     20 # CHECK-NEXT: DW_AT_name	("A")
     21 # CHECK: DW_TAG_structure_type
     22 # CHECK-NEXT: DW_AT_name	("C")
     23 
     24 # CHECK-NOT: DW_AT_name	("B")
     25 
     26 ---
     27 triple:          'ppc-apple-darwin'
     28 objects:
     29   - filename:        sibling.o
     30     timestamp:       1518197670
     31     symbols:
     32       - { sym: _c, objAddr: 0x000000000000017e, binAddr: 0x0000000100000FA0, size: 0x00000010 }
     33 ...
     34