mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
15 lines
758 B
Rust
15 lines
758 B
Rust
// Even though this test only checks 2 of the 10 or so unstable linker flavors, it exercizes the
|
|
// unique codepath checking all unstable options (see `LinkerFlavorCli::is_unstable` and its
|
|
// caller). If it passes, all the other unstable options are rejected as well.
|
|
//
|
|
//@ revisions: bpf ptx
|
|
//@ [bpf] compile-flags: --target=bpfel-unknown-none -C linker-flavor=bpf --crate-type=rlib
|
|
//@ [bpf] error-pattern: linker flavor `bpf` is unstable, the `-Z unstable-options` flag
|
|
//@ [bpf] needs-llvm-components:
|
|
//@ [ptx] compile-flags: --target=nvptx64-nvidia-cuda -C linker-flavor=ptx --crate-type=rlib
|
|
//@ [ptx] error-pattern: linker flavor `ptx` is unstable, the `-Z unstable-options` flag
|
|
//@ [ptx] needs-llvm-components:
|
|
|
|
#![feature(no_core)]
|
|
#![no_core]
|