add reachability test for const bodies
This commit is contained in:
parent
db8aca4812
commit
50b07aa899
@ -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…
Reference in New Issue
Block a user