From 6893e691ea71b294f87a2c4a5c8f0a1f8168751d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sun, 10 Aug 2025 20:46:30 +0200 Subject: [PATCH] Add a post-dist test for compiling a basic program with Cranelift --- .../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 000000000000..198f8d1bc10c --- /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!"); +}