diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-10 20:46:30 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-08-10 20:46:30 +0200 |
| commit | 6893e691ea71b294f87a2c4a5c8f0a1f8168751d (patch) | |
| tree | 48e138adb0f9089de0100aaafffe0ff5dec86807 | |
| parent | 01652d37ae86bae3d773ccc2de01993a45ef15be (diff) | |
| download | rust-6893e691ea71b294f87a2c4a5c8f0a1f8168751d.tar.gz rust-6893e691ea71b294f87a2c4a5c8f0a1f8168751d.zip | |
Add a post-dist test for compiling a basic program with Cranelift
| -rw-r--r-- | tests/ui/dist/cranelift-x86_64-unknown-linux-gnu-dist.rs | 11 |
1 files changed, 11 insertions, 0 deletions
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!"); +} |
