-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CHECK-LABEL error message (#26)
I was debugging a CHECK-LABEL related problem and struggled because I was trying to fix the wrong label in my file. This improved error message should help in those situations.
- Loading branch information
1 parent
07065bb
commit ba7820b
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// RUN: strip-comments.sh %s | exfail filecheck %s --comment-prefixes=RUN,COM,DIAG | filecheck %s --check-prefix=DIAG | ||
|
||
hello: | ||
a | ||
b | ||
|
||
world: | ||
c | ||
d | ||
|
||
// CHECK-LABEL: hello | ||
// CHECK-NOT: d | ||
// CHECK-LABEL: woupsrld | ||
// CHECK: d | ||
|
||
// DIAG: Could not find label 'woupsrld' in input |