All uses of extern fn should mean extern "C" fn. Closes #9309.

This commit is contained in:
Nick Cameron
2014-02-14 17:23:01 +13:00
parent cbed3321f5
commit 317a253b22
19 changed files with 53 additions and 30 deletions

View File

@@ -14,8 +14,8 @@ struct Foo(int);
struct Bar(int, int);
pub fn main() {
let f: extern fn(int) -> Foo = Foo;
let g: extern fn(int, int) -> Bar = Bar;
let f: fn(int) -> Foo = Foo;
let g: fn(int, int) -> Bar = Bar;
assert_eq!(f(42), Foo(42));
assert_eq!(g(4, 7), Bar(4, 7));
}