summaryrefslogtreecommitdiffstats
path: root/tests/codegen/instrument-xray/options-combine.rs
blob: f7e500b65f62d9e7ffefc4825570f0df3617a7be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}