// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use std::cast::transmute;
-
extern fn f() {
}
}
pub fn main() {
- unsafe {
- let a: extern "C" fn() = f;
- let b: extern "C" fn() = f;
- let c: extern "C" fn() = g;
+ let a: extern "C" fn() = f;
+ let b: extern "C" fn() = f;
+ let c: extern "C" fn() = g;
- assert_eq!(a, b);
- assert!(a != c);
- }
+ assert!(a == b);
+ assert!(a != c);
}