-
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.
- Loading branch information
1 parent
9ce37dc
commit b24f68f
Showing
3 changed files
with
19 additions
and
10 deletions.
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
extern crate run_make_support; | ||
|
||
use run_make_support::{out_dir, rustc}; | ||
|
||
// Test that hir-tree output doesn't crash and includes | ||
// the string constant we would expect to see. | ||
|
||
fn main() { | ||
rustc() | ||
.arg("-o") | ||
.arg(&out_dir().join("input.hir")) | ||
.arg("-Zunpretty=hir-tree") | ||
.arg("input.rs") | ||
.run(); | ||
let file = std::fs::read_to_string(&out_dir().join("input.hir")).unwrap(); | ||
assert!(file.contains(r#""Hello, Rustaceans!\n""#)); | ||
} |