mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-09 06:46:44 +00:00
12 lines
347 B
Rust
12 lines
347 B
Rust
// Checks that the last `-Z instrument-xray` option wins.
|
|
//
|
|
// needs-xray
|
|
// compile-flags: -Z instrument-xray=always
|
|
// compile-flags: -Z instrument-xray=never
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// CHECK: attributes #{{.*}} "function-instrument"="xray-never"
|
|
// CHECK-NOT: attributes #{{.*}} "function-instrument"="xray-always"
|
|
pub fn function() {}
|