Skip to content

Commit

Permalink
differentiate functions in extern-compare-with-return-type.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jan 11, 2021
1 parent c1d9423 commit 9756838
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/ui/extern/extern-compare-with-return-type.rs
Expand Up @@ -2,8 +2,9 @@
// Tests that we can compare various kinds of extern fn signatures.
#![allow(non_camel_case_types)]

extern fn voidret1() {}
extern fn voidret2() {}
// `dbg!()` differentiates these functions to ensure they won't be merged.
extern fn voidret1() { dbg!() }
extern fn voidret2() { dbg!() }

extern fn uintret() -> usize { 22 }

Expand Down

0 comments on commit 9756838

Please sign in to comment.