Skip to content

Commit aff3990

Browse files
committed
improve test
1 parent 133e848 commit aff3990

File tree

1 file changed

+4
-3
lines changed
  • clang/test/DebugInfo/KeyInstructions

1 file changed

+4
-3
lines changed

clang/test/DebugInfo/KeyInstructions/for.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ void a(int A) {
2020
// O0. Since we're no longer targeting O0 we should reevaluate whether this
2121
// adds any value.
2222
// CHECK: for.body:
23-
// CHECK: br label %for.inc, !dbg [[G5R1:!.*]]
23+
// CHECK-NEXT: br label %for.inc, !dbg [[G5R1:!.*]]
2424

2525
// CHECK: for.inc:
2626
// CHECK: %inc = add{{.*}}, !dbg [[G4R2:!.*]]
2727
// CHECK: store i32 %inc, ptr %i{{.*}}, !dbg [[G4R1:!.*]]
28-
for (int i = 0; i < A; ++i) { }
28+
for (int i = 0; i < A; ++i) {
29+
}
2930
}
3031

3132
// CHECK: [[G1R1]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 1)
3233
// CHECK: [[G2R1]] = !DILocation({{.*}}, atomGroup: 2, atomRank: 1)
3334
// CHECK: [[G3R1]] = !DILocation({{.*}}, atomGroup: 3, atomRank: 1)
34-
// CHECK: [[G5R1]] = !DILocation({{.*}}, atomGroup: 5, atomRank: 1)
35+
// CHECK: [[G5R1]] = !DILocation(line: 29,{{.*}} atomGroup: 5, atomRank: 1)
3536
// CHECK: [[G4R2]] = !DILocation({{.*}}, atomGroup: 4, atomRank: 2)
3637
// CHECK: [[G4R1]] = !DILocation({{.*}}, atomGroup: 4, atomRank: 1)

0 commit comments

Comments
 (0)