Skip to content

Commit 6893e69

Browse files
committed
Add a post-dist test for compiling a basic program with Cranelift
1 parent 01652d3 commit 6893e69

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
//@ run-pass
8+
9+
fn main() {
10+
println!("Hello world!");
11+
}

0 commit comments

Comments
 (0)