about summary refs log tree commit diff
path: root/tests/codegen-llvm/instrument-xray/basic.rs
blob: 7aaebf41e36ed38b5221c280fc190eacfadfff24 (plain)
1
2
3
4
5
6
7
8
9
// Checks that `-Z instrument-xray` produces expected instrumentation.
//
//@ needs-xray
//@ compile-flags: -Z instrument-xray=always -Copt-level=0

#![crate_type = "lib"]

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