rust/src/test/run-pass/extern-take-value.rs
2012-07-03 16:49:46 -07:00

16 lines
189 B
Rust

extern fn f() {
}
extern fn g() {
}
fn main() {
// extern functions are *u8 types
let a: *u8 = f;
let b: *u8 = f;
let c: *u8 = g;
assert a == b;
assert a != c;
}