Skip to content

Commit 37c869a

Browse files
committed
re-add accidentally removed test
1 parent 93a95dd commit 37c869a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \
2+
// RUN: | FileCheck %s
3+
4+
struct B {
5+
float y;
6+
};
7+
8+
class Cls {
9+
public:
10+
int x = 1;
11+
B b = {5.f};
12+
};
13+
14+
void fun() {
15+
Cls c;
16+
}
17+
18+
// CHECK: store i32 1, ptr %x{{.*}}, !dbg [[G1R1:!.*]]
19+
// CHECK: store float 5.000000e+00, ptr %y{{.*}}, !dbg [[G2R1:!.*]]
20+
// CHECK: ret{{.*}}, !dbg [[RET:!.*]]
21+
22+
// CHECK: [[G1R1]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 1)
23+
// CHECK: [[G2R1]] = !DILocation({{.*}}, atomGroup: 2, atomRank: 1)
24+
// CHECK: [[RET]] = !DILocation({{.*}}, atomGroup: [[#]], atomRank: [[#]])

0 commit comments

Comments
 (0)