add reachability test for const bodies
This commit is contained in:
parent
db8aca4812
commit
50b07aa899
1 changed files with 6 additions and 0 deletions
|
@ -8,3 +8,9 @@ const fn foo() {}
|
|||
pub static FOO: () = foo();
|
||||
|
||||
// CHECK-NOT: define{{.*}}foo{{.*}}
|
||||
|
||||
const fn bar() {}
|
||||
|
||||
pub const BAR: () = bar();
|
||||
|
||||
// CHECK: define{{.*}}bar{{.*}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue