Codegen tests for -Z instrument-xray
Let's add at least some tests to verify that this option is accepted and produces expected LLVM attributes. More tests can be added later with attribute support.
This commit is contained in:
parent
bac15db1d0
commit
0fef658ffe
3 changed files with 29 additions and 0 deletions
8
tests/codegen/instrument-xray/basic.rs
Normal file
8
tests/codegen/instrument-xray/basic.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Checks that `-Z instrument-xray` produces expected instrumentation.
|
||||
//
|
||||
// compile-flags: -Z instrument-xray=always
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
// CHECK: attributes #{{.*}} "function-instrument"="xray-always"
|
||||
pub fn function() {}
|
Loading…
Add table
Add a link
Reference in a new issue