-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiletest: Self-test for
normalize-*
with revisions
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
tests/ui/compiletest-self-test/normalize-with-revision.a.run.stderr
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,2 @@ | ||
1st emitted line | ||
second emitted line |
2 changes: 2 additions & 0 deletions
2
tests/ui/compiletest-self-test/normalize-with-revision.b.run.stderr
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,2 @@ | ||
first emitted line | ||
2nd emitted line |
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,20 @@ | ||
//! Checks that `[rev] normalize-*` directives affect the specified revision, | ||
//! and don't affect other revisions. | ||
//! | ||
//! This currently relies on the fact that `normalize-*` directives are | ||
//! applied to run output, not just compiler output. If that ever changes, | ||
//! this test might need to be adjusted. | ||
//@ edition: 2021 | ||
//@ revisions: a b | ||
//@ run-pass | ||
//@ check-run-results | ||
|
||
//@ normalize-stderr: "output" -> "emitted" | ||
//@[a] normalize-stderr: "first" -> "1st" | ||
//@[b] normalize-stderr: "second" -> "2nd" | ||
|
||
fn main() { | ||
eprintln!("first output line"); | ||
eprintln!("second output line"); | ||
} |