We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a95dd commit 37c869aCopy full SHA for 37c869a
clang/test/DebugInfo/KeyInstructions/init-member.cpp
@@ -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