rust/tests/codegen/instrument-xray/options-combine.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
468 B
Rust
Raw Normal View History

// Checks that `-Z instrument-xray` options can be specified multiple times.
//
// needs-xray
// compile-flags: -Z instrument-xray=skip-exit
// compile-flags: -Z instrument-xray=instruction-threshold=123
// compile-flags: -Z instrument-xray=instruction-threshold=456
#![crate_type = "lib"]
// CHECK: attributes #{{.*}} "xray-instruction-threshold"="456" "xray-skip-exit"
// CHECK-NOT: attributes #{{.*}} "xray-instruction-threshold"="123"
pub fn function() {}