diff options
| author | cynecx <me@cynecx.net> | 2022-02-25 22:52:17 +0100 |
|---|---|---|
| committer | cynecx <me@cynecx.net> | 2022-02-25 22:53:34 +0100 |
| commit | 45a441b61caa30159e8832bed73849fbe8ff59d2 (patch) | |
| tree | 99fa680f2025d5712b76745e474476f375bff49c /src/test/ui/attributes | |
| parent | d981633ed6669c6f7b1cb46d1d1a7282e281ca8e (diff) | |
`check_used` should only look at actual `used` attributes
Diffstat (limited to 'src/test/ui/attributes')
| -rw-r--r-- | src/test/ui/attributes/used_with_arg_no_mangle.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/attributes/used_with_arg_no_mangle.rs b/src/test/ui/attributes/used_with_arg_no_mangle.rs new file mode 100644 index 00000000000..d0bbe76ef3e --- /dev/null +++ b/src/test/ui/attributes/used_with_arg_no_mangle.rs @@ -0,0 +1,9 @@ +// check-pass + +#![feature(used_with_arg)] + +#[used(linker)] +#[no_mangle] // accidentally detected as `used(compiler)` +pub static GLOB: usize = 0; + +fn main() {} |
