summary refs log tree commit diff
path: root/src/test/compile-fail/nolink-with-link-args.rs
blob: 07efff7571c33854ed8f3854aa74300be30a7abb (plain)
1
2
3
4
5
6
7
8
9
10
11
// error-pattern:aFdEfSeVEE

/* We're testing that link_args are indeed passed when nolink is specified.
So we try to compile with junk link_args and make sure they are visible in
the compiler output. */

#[link_args = "aFdEfSeVEEE"]
#[nolink]
native mod m1 { }

fn main() { }