-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some wrong tests and add some new ones
Note that C still doesn't implement align, but as of #39 we combinatoric repr(rust) vs repr(c) and include rustcall as a calling convention, so our coverage of rust <-> rust (in particular for codegen_backend users) is significantly improved. fixes #23 fixes #21 fixes #15
- Loading branch information
Showing
6 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This was a problem for rustc (I think u32 = ulong here?) | ||
// | ||
// https://github.com/rust-lang/rust/issues/80127 | ||
|
||
@align 16 | ||
struct "TwoU32s" { | ||
a "u32" | ||
b "u32" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This was a problem for rustc on ppc64le | ||
// | ||
// https://github.com/rust-lang/rust/issues/122767 | ||
|
||
@align 16 | ||
struct "TwoU64s" { | ||
a "u64" | ||
b "u64" | ||
} |
2 changes: 1 addition & 1 deletion
2
...s/procgen/tagged/OptI32Tagged.procgen.kdl → ...ests/procgen/tagged/OptionI32.procgen.kdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// An option-like enum of i32 | ||
|
||
tagged "OptI32Tagged" { | ||
tagged "OptionI32" { | ||
Some { _ "i32"; } | ||
None | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// This type was a problem for cranelift | ||
// | ||
// https://github.com/rust-lang/rustc_codegen_cranelift/issues/1449 | ||
|
||
tagged "OptionU128" { | ||
Some { _ "u128"; } | ||
None | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
union "MultiVariantUnion" { | ||
_ "u32" | ||
_ "i64" | ||
_ "Point3" | ||
} | ||
|
||
struct "Point3" { | ||
|