[PATCH] differentiate functions in extern-compare-with-return-type.rs
authorJosh Stone <jistone@redhat.com>
Mon, 11 Jan 2021 23:13:26 +0000 (15:13 -0800)
committerXimin Luo <infinity0@debian.org>
Sat, 18 Sep 2021 10:45:21 +0000 (11:45 +0100)
Gbp-Pq: Name 9756838f612da2ef6c359aaea8bf0a69ad76716a.patch

src/test/ui/extern/extern-compare-with-return-type.rs

index 6c9ed3760f6e4ef71c46f8d65954940b5b771272..52b51bb943aa62f437f729e5e1e92c45d9ff6066 100644 (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 }