diff options
Diffstat (limited to 'tests/ui/duplicate/dupe-symbols-6.rs')
-rw-r--r-- | tests/ui/duplicate/dupe-symbols-6.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/duplicate/dupe-symbols-6.rs b/tests/ui/duplicate/dupe-symbols-6.rs new file mode 100644 index 000000000..018f4bb7f --- /dev/null +++ b/tests/ui/duplicate/dupe-symbols-6.rs @@ -0,0 +1,11 @@ +// build-fail + +#![crate_type="rlib"] +#![allow(warnings)] + +#[export_name="fail"] +static HELLO: u8 = 0; + +#[export_name="fail"] +static HELLO_TWICE: u16 = 0; +//~^ symbol `fail` is already defined |