Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-blocks.cpp
blobe22594cb5d6ac7aac429affad8cb23db609fec87
1 // RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -fblocks -S -emit-llvm -o - | FileCheck %s
2 // RUN: %clang_cc1 %s -debug-info-kind=line-directives-only -fblocks -S -emit-llvm -o - | FileCheck %s
4 struct A {
5 A();
6 A(const A &);
7 ~A();
8 };
10 void test() {
11 __block A a;
12 ^{ (void)a; };
15 // CHECK: !DISubprogram(linkageName: "__Block_byref_object_copy_",
16 // CHECK-SAME: DISPFlagLocalToUnit | DISPFlagDefinition
17 // CHECK: !DISubprogram(linkageName: "__Block_byref_object_dispose_",
18 // CHECK-SAME: DISPFlagLocalToUnit | DISPFlagDefinition