2012-07-03 18:32:02 -05:00
|
|
|
extern fn f() {
|
2012-02-10 17:34:23 -06:00
|
|
|
}
|
|
|
|
|
2012-07-03 18:32:02 -05:00
|
|
|
extern fn g() {
|
2012-02-10 19:46:53 -06:00
|
|
|
}
|
|
|
|
|
2012-02-10 17:34:23 -06:00
|
|
|
fn main() {
|
2012-07-03 18:32:02 -05:00
|
|
|
// extern functions are *u8 types
|
2012-02-10 19:46:53 -06:00
|
|
|
let a: *u8 = f;
|
|
|
|
let b: *u8 = f;
|
|
|
|
let c: *u8 = g;
|
|
|
|
|
|
|
|
assert a == b;
|
|
|
|
assert a != c;
|
|
|
|
}
|