Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -o - -emit-llvm | FileCheck %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 2 | // XFAIL: aarch64, arm64, x86_64-pc-win32, x86_64-w64-mingw32 |
Tim Northover | 8fa36ea | 2013-02-07 15:11:40 +0000 | [diff] [blame] | 3 | |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 4 | // PR1513 |
| 5 | |
Tim Northover | 8fa36ea | 2013-02-07 15:11:40 +0000 | [diff] [blame] | 6 | // AArch64 ABI actually requires the reverse of what this is testing: the callee |
| 7 | // does any extensions and remaining bits are unspecified. |
| 8 | |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 9 | // Win64 ABI does expect extensions for type smaller than 64bits. |
| 10 | |
Tim Northover | 8fa36ea | 2013-02-07 15:11:40 +0000 | [diff] [blame] | 11 | // Technically this test wasn't written to test that feature, but it's a |
| 12 | // valuable check nevertheless. |
| 13 | |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 14 | struct s{ |
| 15 | long a; |
| 16 | long b; |
| 17 | }; |
| 18 | |
| 19 | void f(struct s a, char *b, signed char C) { |
| 20 | // CHECK: i8 signext |
| 21 | |
| 22 | } |