2022-10-01 20:25:49 -05:00
|
|
|
// Checks that the last `-Z instrument-xray` option wins.
|
|
|
|
//
|
2022-10-01 22:58:05 -05:00
|
|
|
//@ needs-xray
|
2023-10-06 19:29:42 -05:00
|
|
|
//@ compile-flags: -Z instrument-xray=always -Copt-level=0
|
|
|
|
//@ compile-flags: -Z instrument-xray=never -Copt-level=0
|
2022-10-01 20:25:49 -05:00
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
// CHECK: attributes #{{.*}} "function-instrument"="xray-never"
|
|
|
|
// CHECK-NOT: attributes #{{.*}} "function-instrument"="xray-always"
|
|
|
|
pub fn function() {}
|