Skip to content

Commit

Permalink
add reachability test for const bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 3, 2024
1 parent 8768db9 commit 23d43a7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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{{.*}}

0 comments on commit 23d43a7

Please sign in to comment.