about summary refs log tree commit diff
path: root/tests/codegen-llvm/instrument-xray/options-override.rs
blob: 428fb723edb15a957e2b0e1bdd4932c8769d08d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Checks that the last `-Z instrument-xray` option wins.
//
//@ needs-xray
//@ compile-flags: -Z instrument-xray=always -Copt-level=0
//@ compile-flags: -Z instrument-xray=never -Copt-level=0

#![crate_type = "lib"]

// CHECK:      attributes #{{.*}} "function-instrument"="xray-never"
// CHECK-NOT:  attributes #{{.*}} "function-instrument"="xray-always"
pub fn function() {}