diff options
Diffstat (limited to 'tests/ui/attributes/used_with_multi_args.rs')
-rw-r--r-- | tests/ui/attributes/used_with_multi_args.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/attributes/used_with_multi_args.rs b/tests/ui/attributes/used_with_multi_args.rs new file mode 100644 index 000000000..2e17fcfd7 --- /dev/null +++ b/tests/ui/attributes/used_with_multi_args.rs @@ -0,0 +1,6 @@ +#![feature(used_with_arg)] + +#[used(compiler, linker)] //~ expected `used`, `used(compiler)` or `used(linker)` +static mut USED_COMPILER_LINKER: [usize; 1] = [0]; + +fn main() {} |