blob: 23c211d3ba0426a74f14afdc0ae1ac5da0c704e5 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -o - -emit-llvm | FileCheck %s
Stephen Hines176edba2014-12-01 14:53:08 -08002// XFAIL: aarch64, arm64, x86_64-pc-win32, x86_64-w64-mingw32
Tim Northover8fa36ea2013-02-07 15:11:40 +00003
Eric Christopher3883e662011-07-26 22:17:02 +00004// PR1513
5
Tim Northover8fa36ea2013-02-07 15:11:40 +00006// AArch64 ABI actually requires the reverse of what this is testing: the callee
7// does any extensions and remaining bits are unspecified.
8
Stephen Hines176edba2014-12-01 14:53:08 -08009// Win64 ABI does expect extensions for type smaller than 64bits.
10
Tim Northover8fa36ea2013-02-07 15:11:40 +000011// Technically this test wasn't written to test that feature, but it's a
12// valuable check nevertheless.
13
Eric Christopher3883e662011-07-26 22:17:02 +000014struct s{
15long a;
16long b;
17};
18
19void f(struct s a, char *b, signed char C) {
20 // CHECK: i8 signext
21
22}