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