Skip to content

Commit b9351d0

Browse files
committed
Fix debug-info-alias test to add CHECK to some lines that were missing it.
To simplify source location offsets, this test uses line directives to force particular lines of interest to have known line numbers so that adjustments before/after those points don't require updates to the CHECK lines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207779 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 781a1d0 commit b9351d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/CodeGenCXX/debug-info-alias.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ x::bar<int> bi;
2121
x::bar<float> bf;
2222

2323
using
24-
// metadata [[NARF:![0-9]*]], i32 0, i32 1, {{.*}} ; [ DW_TAG_variable ] [n]
25-
narf // [[NARF]] = {{.*}} ; [ DW_TAG_typedef ] [narf] [line [[@LINE]]
24+
// CHECK: metadata [[NARF:![0-9]*]], i32 0, i32 1, {{.*}} ; [ DW_TAG_variable ] [n]
25+
# 142
26+
narf // CHECK: [[NARF]] = {{.*}} ; [ DW_TAG_typedef ] [narf] [line 142
2627
= int;
2728
narf n;
2829

0 commit comments

Comments
 (0)