2022-10-01 20:25:49 -05:00
|
|
|
// Checks that `-Z instrument-xray` options can be specified multiple times.
|
|
|
|
//
|
2022-10-01 22:58:05 -05:00
|
|
|
//@ needs-xray
|
2023-10-06 19:29:42 -05:00
|
|
|
//@ compile-flags: -Z instrument-xray=skip-exit -Copt-level=0
|
|
|
|
//@ compile-flags: -Z instrument-xray=instruction-threshold=123 -Copt-level=0
|
|
|
|
//@ compile-flags: -Z instrument-xray=instruction-threshold=456 -Copt-level=0
|
2022-10-01 20:25:49 -05:00
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
// CHECK: attributes #{{.*}} "xray-instruction-threshold"="456" "xray-skip-exit"
|
|
|
|
// CHECK-NOT: attributes #{{.*}} "xray-instruction-threshold"="123"
|
|
|
|
pub fn function() {}
|