mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Prefer to put STDOUT CHECK at the end of the file. (#3073)
Allow interleaving of STDOUT and STDERR check lines. Put STDOUT lines after the line they're attached to, and STDERR lines before. If no STDOUT check line is attached to any line, then put them all at the end of the file instead. This is intended to better handle the case where stdout contains unreplaced mentions of line numbers, and also reflects that stdout is typically a consequence of the test rather than commentary on it, so placing it after the test seems likely to read better.
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@
|
||||
//
|
||||
// ARGS: dump objcode --target_triple=x86_64-unknown-linux-gnu --output_file=%t %s
|
||||
// AUTOUPDATE
|
||||
// CHECK:STDOUT: Success: Object file is generated!
|
||||
|
||||
fn Main() -> i32 { return 0; }
|
||||
|
||||
// CHECK:STDOUT: Success: Object file is generated!
|
||||
|
||||
Reference in New Issue
Block a user