1 // This test will test the correctness of generating DILabel and
2 // llvm.dbg.label when the label is in inlined functions.
4 // RUN: %clang_cc1 -O2 %s -o - -emit-llvm -debug-info-kind=limited | FileCheck %s
5 inline int f1(int a
, int b
) {
19 // CHECK: #dbg_label([[LABEL_METADATA:!.*]], [[LABEL_LOCATION:![0-9]+]]
24 // CHECK: distinct !DISubprogram(name: "f1", {{.*}}, retainedNodes: [[ELEMENTS:!.*]])
25 // CHECK: [[ELEMENTS]] = !{{{.*}}, [[LABEL_METADATA]]}
26 // CHECK: [[LABEL_METADATA]] = !DILabel({{.*}}, name: "top", {{.*}}, line: 8)
27 // CHECK: [[INLINEDAT:!.*]] = distinct !DILocation(line: 18,
28 // CHECK: [[LABEL_LOCATION]] = !DILocation(line: 8, {{.*}}, inlinedAt: [[INLINEDAT]])