summaryrefslogtreecommitdiffstats
path: root/tests/codegen/instrument-xray/options-override.rs
blob: 00f81837902dd5d381bf94d82d9d784881a3e814 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}