differentiate functions in extern-compare-with-return-type.rs

This commit is contained in:
Josh Stone 2021-01-11 15:13:26 -08:00
parent c1d9423959
commit 9756838f61

View file

@ -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 }