Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-zero-length-arrays.cpp
blob0b3fd937d23c0024706f218ce9207d4d4cb43be4
1 // RUN: %clang -target x86_64-unknown-unknown -fverbose-asm -g -O0 -S -emit-llvm %s -o - | FileCheck %s
3 class A {
4 int x[];
5 };
6 A a;
8 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "x"
9 // CHECK-SAME: baseType: [[ARRAY_TYPE:![0-9]+]]
10 // CHECK: [[ARRAY_TYPE]] = !DICompositeType(tag: DW_TAG_array_type,
11 // CHECK-NOT: size:
12 // CHECK-SAME: elements: [[ELEM_TYPE:![0-9]+]]
13 // CHECK: [[ELEM_TYPE]] = !{[[SUBRANGE:.*]]}
14 // CHECK: [[SUBRANGE]] = !DISubrange(count: -1)