Skip to content

Commit f5b183f

Browse files
committed
also test repr(C, int) enums
1 parent 6e42535 commit f5b183f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/miri/tests/pass/function_calls/abi_compat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn main() {
8080
}
8181
test_abi_compat(I16::Var1, 0i16);
8282
test_abi_compat(I16::Var2, -5i16);
83-
#[repr(u64)]
83+
#[repr(C, u64)]
8484
#[derive(Copy, Clone)]
8585
enum U64 {
8686
Var1 = 0,

tests/ui/abi/compatibility.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ enum I16 {
273273
Var2,
274274
}
275275
test_abi_compatible_nested!(enum_i16, I16, i16);
276-
#[repr(u64)]
276+
#[repr(C, u64)]
277277
enum U64 {
278278
Var1,
279279
Var2,

0 commit comments

Comments
 (0)