Debian Codegraph @

clang/test/DebugInfo/KeyInstructions/init-member.cpp

raw
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: 3, atomRank: 1)