Add a post-dist test for compiling a basic program with Cranelift
This commit is contained in:
parent
01652d37ae
commit
6893e691ea
1 changed files with 11 additions and 0 deletions
11
tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs
vendored
Normal file
11
tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Ensure that Cranelift can be used to compile a simple program with `x86_64-unknown-linux-gnu`
|
||||
// dist artifacts.
|
||||
|
||||
//@ only-dist
|
||||
//@ only-x86_64-unknown-linux-gnu
|
||||
//@ compile-flags: -Z codegen-backend=cranelift
|
||||
//@ run-pass
|
||||
|
||||
fn main() {
|
||||
println!("Hello world!");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue