Add a post-dist test for compiling a basic program with Cranelift

This commit is contained in:
Jakub Beránek 2025-08-10 20:46:30 +02:00
parent 01652d37ae
commit 6893e691ea
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View 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!");
}