From 6893e691ea71b294f87a2c4a5c8f0a1f8168751d Mon Sep 17 00:00:00 2001 From: Jakub Beránek Date: Sun, 10 Aug 2025 20:46:30 +0200 Subject: Add a post-dist test for compiling a basic program with Cranelift --- tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs diff --git a/tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs b/tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs new file mode 100644 index 00000000000..198f8d1bc10 --- /dev/null +++ b/tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs @@ -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!"); +} -- cgit 1.4.1-3-g733a5