diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2024-03-06 12:44:54 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2024-03-11 09:36:35 -0700 |
| commit | cf6d6050f7d1ea62c9aae54ddd345106b6e31382 (patch) | |
| tree | 707bf98a0678f0085da773ba64234052c827d3b2 /tests/ui/structs-enums | |
| parent | 4a5aa1a104a9a85cc765af863f64297f9e7e73f6 (diff) | |
| download | rust-cf6d6050f7d1ea62c9aae54ddd345106b6e31382.tar.gz rust-cf6d6050f7d1ea62c9aae54ddd345106b6e31382.zip | |
Update test directives for `wasm32-wasip1`
* The WASI targets deal with the `main` symbol a bit differently than native so some `codegen` and `assembly` tests have been ignored. * All `ignore-emscripten` directives have been updated to `ignore-wasm32` to be more clear that all wasm targets are ignored and it's not just Emscripten. * Most `ignore-wasm32-bare` directives are now gone. * Some ignore directives for wasm were switched to `needs-unwind` instead. * Many `ignore-wasm32*` directives are removed as the tests work with WASI as opposed to `wasm32-unknown-unknown`.
Diffstat (limited to 'tests/ui/structs-enums')
| -rw-r--r-- | tests/ui/structs-enums/rec-align-u64.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/ui/structs-enums/rec-align-u64.rs b/tests/ui/structs-enums/rec-align-u64.rs index e4b02fa0c58..72601bb16ff 100644 --- a/tests/ui/structs-enums/rec-align-u64.rs +++ b/tests/ui/structs-enums/rec-align-u64.rs @@ -1,7 +1,6 @@ //@ run-pass #![allow(dead_code)] #![allow(unused_unsafe)] -//@ ignore-wasm32-bare seems unimportant to test // Issue #2303 @@ -78,6 +77,14 @@ mod m { } } +#[cfg(target_family = "wasm")] +mod m { + pub mod m { + pub fn align() -> usize { 8 } + pub fn size() -> usize { 16 } + } +} + pub fn main() { unsafe { let x = Outer {c8: 22, t: Inner {c64: 44}}; |
