mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
510 B
Rust
13 lines
510 B
Rust
// Checks that `-Z instrument-xray` options can be specified multiple times.
|
|
//
|
|
// needs-xray
|
|
// 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
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// CHECK: attributes #{{.*}} "xray-instruction-threshold"="456" "xray-skip-exit"
|
|
// CHECK-NOT: attributes #{{.*}} "xray-instruction-threshold"="123"
|
|
pub fn function() {}
|