blob: da74d6b64fe5f58f497c699090ab2476816a07dd [file] [log] [blame]
Eric Christopherd3e46dd2011-07-28 00:13:53 +00001// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00002// PR 5406
3
Eric Christopher3883e662011-07-26 22:17:02 +00004typedef struct { char x[3]; } A0;
5void foo (int i, ...);
6
7
Eric Christopherd3e46dd2011-07-28 00:13:53 +00008// CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, [1 x i32] {{.*}})
Eric Christopher3883e662011-07-26 22:17:02 +00009int main (void)
10{
11 A0 a3;
12 a3.x[0] = 0;
13 a3.x[0] = 0;
14 a3.x[2] = 26;
15 foo (1, a3 );
16 return 0;
17}