diff options
| author | bors <bors@rust-lang.org> | 2023-04-03 07:27:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-03 07:27:58 +0000 |
| commit | 932c173ca1b7a79c1005e2d72ddfa505a7bf2cfa (patch) | |
| tree | 2c44d95b514a02c51806d2e3f38e3fe29c9b07e4 /tests/ui/wasm/wasm-custom-section-relocations.rs | |
| parent | d0eed58a1e78eb1a25bb54076e4b0f7ea5ff7401 (diff) | |
| parent | 22df7107bdd36cf47e327c8165e720c1eccb351d (diff) | |
| download | rust-932c173ca1b7a79c1005e2d72ddfa505a7bf2cfa.tar.gz rust-932c173ca1b7a79c1005e2d72ddfa505a7bf2cfa.zip | |
Auto merge of #109884 - matthiaskrgr:rollup-5wapig9, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #109526 (LIBPATH is used as dylib's path environment variable on AIX) - #109642 (check for missing codegen backeng config) - #109722 (Implement read_buf for RustHermit) - #109856 (fix(middle): emit error rather than delay bug when reaching limit) - #109868 (Improve PR job names in Github Actions preview) - #109871 (Include invocation start times) - #109873 (Move some UI tests into subdirectories) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui/wasm/wasm-custom-section-relocations.rs')
| -rw-r--r-- | tests/ui/wasm/wasm-custom-section-relocations.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/wasm/wasm-custom-section-relocations.rs b/tests/ui/wasm/wasm-custom-section-relocations.rs new file mode 100644 index 00000000000..c3cca3a35ac --- /dev/null +++ b/tests/ui/wasm/wasm-custom-section-relocations.rs @@ -0,0 +1,15 @@ +// only-wasm32 + +#[link_section = "test"] +pub static A: &[u8] = &[1]; //~ ERROR: no extra levels of indirection + +#[link_section = "test"] +pub static B: [u8; 3] = [1, 2, 3]; + +#[link_section = "test"] +pub static C: usize = 3; + +#[link_section = "test"] +pub static D: &usize = &C; //~ ERROR: no extra levels of indirection + +fn main() {} |
