brintos

brintos / llvm-project-archived public Read only

0
0
Text · 616 B · 0c45c07 Raw
25 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \2// RUN: | FileCheck %s3 4struct B {5  float y;6};7 8class Cls {9  public:10    int x = 1;11    B b = {5.f};12};13 14void 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)25