add reachability test for const bodies

This commit is contained in:
Oli Scherer 2024-03-14 16:51:33 +00:00
parent db8aca4812
commit 50b07aa899

View File

@ -8,3 +8,9 @@ const fn foo() {}
pub static FOO: () = foo(); pub static FOO: () = foo();
// CHECK-NOT: define{{.*}}foo{{.*}} // CHECK-NOT: define{{.*}}foo{{.*}}
const fn bar() {}
pub const BAR: () = bar();
// CHECK: define{{.*}}bar{{.*}}