summary refs log tree commit diff
path: root/src/test/run-pass/foreign-lib-path.rs
blob: b777e6f9a70186acd3a22d18ce5d2a8c66bd799d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// xfail-test FIXME I don't know how to test this (#2604)
// compile-flags:-L.
// The -L flag is also used for linking foreign libraries

// FIXME: I want to name a mod that would not link successfully
// wouthout providing a -L argument to the compiler, and that
// will also be found successfully at runtime.
extern mod WHATGOESHERE {
    #[legacy_exports];
    fn IDONTKNOW() -> u32;
}

fn main() {
    assert IDONTKNOW() == 0x_BAD_DOOD_u32;
}