diff options
Diffstat (limited to 'src/test/ui/extern/extern-thiscall.rs')
-rw-r--r-- | src/test/ui/extern/extern-thiscall.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/ui/extern/extern-thiscall.rs b/src/test/ui/extern/extern-thiscall.rs deleted file mode 100644 index 717df57ec..000000000 --- a/src/test/ui/extern/extern-thiscall.rs +++ /dev/null @@ -1,25 +0,0 @@ -// run-pass -// only-x86 - -#![feature(abi_thiscall)] - -trait A { - extern "thiscall" fn test1(i: i32); -} - -struct S; - -impl A for S { - extern "thiscall" fn test1(i: i32) { - assert_eq!(i, 1); - } -} - -extern "thiscall" fn test2(i: i32) { - assert_eq!(i, 2); -} - -fn main() { - <S as A>::test1(1); - test2(2); -} |