summaryrefslogtreecommitdiffstats
path: root/src/test/ui/wasm-custom-section-relocations.rs
blob: c3cca3a35ac6916f0ecc0316fe67a6e4032851db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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() {}