Skip to content

Commit 49e8eb9

Browse files
committed
Add a post-dist test for compiling a basic program with Cranelift
1 parent 915a766 commit 49e8eb9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Ensure that Cranelift can be used to compile a simple program with `x86_64-unknown-linux-gnu`
2+
// dist artifacts.
3+
4+
//@ only-dist
5+
//@ only-x86_64-unknown-linux-gnu
6+
//@ compile-flags: -Z codegen-backend=cranelift
7+
8+
fn main() {
9+
println!("Hello world!");
10+
}

0 commit comments

Comments
 (0)