Add test
This commit is contained in:
parent
e69f14b14c
commit
54d83beb38
1 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
||||||
|
//! This test checks that we do not monomorphize functions that are only
|
||||||
|
//! used to evaluate static items, but never used in runtime code.
|
||||||
|
|
||||||
|
//@compile-flags: --crate-type=lib -Copt-level=0
|
||||||
|
|
||||||
|
const fn foo() {}
|
||||||
|
|
||||||
|
pub static FOO: () = foo();
|
||||||
|
|
||||||
|
// CHECK: define{{.*}}foo{{.*}}
|
Loading…
Add table
Add a link
Reference in a new issue