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 Mar 14, 2024
1 parent 746e4ef commit 296abcf
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 296abcf

Please sign in to comment.