brintos

brintos / llvm-project-archived public Read only

0
0
Text · 655 B · 5cc39bc Raw
22 lines · cpp
1// UNSUPPORTED: system-windows2//3// Test to verify we are correctly generating anonymous flags when parsing4// anonymous class and unnamed structs from DWARF to the a clang AST node.5 6// RUN: %clangxx_host -g -c -o %t.o %s7// RUN: lldb-test symbols -dump-clang-ast %t.o | FileCheck %s8 9struct A {10  struct {11    int x;12  };13  struct {14    int y;15  } C;16} a;17 18// CHECK: A::(anonymous struct)19// CHECK: |-DefinitionData is_anonymous pass_in_registers aggregate standard_layout trivially_copyable pod trivial literal20// CHECK: A::(unnamed struct)21// CHECK: |-DefinitionData pass_in_registers aggregate standard_layout trivially_copyable pod trivial literal22