]>
Commit | Line | Data |
---|---|---|
0531ce1d | 1 | #![crate_type = "cdylib"] |
0531ce1d XL |
2 | #![deny(warnings)] |
3 | ||
4 | extern crate foo; | |
5 | ||
8faf50e0 XL |
6 | #[link_section = "foo"] |
7 | pub static A: [u8; 2] = [5, 6]; | |
0531ce1d | 8 | |
8faf50e0 XL |
9 | #[link_section = "baz"] |
10 | pub static B: [u8; 2] = [7, 8]; | |
0531ce1d XL |
11 | |
12 | #[no_mangle] | |
13 | pub extern fn foo() {} |