blob: 2d198220a7700b8d38e5ff304818473c4c4b4fc4 [file] [log] [blame]
Jim Grosbachf7947052012-07-09 18:34:21 +00001// REQUIRES: arm-registered-target
Eric Christopherd3e46dd2011-07-28 00:13:53 +00002// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00003// PR 5406
4
Eric Christopher3883e662011-07-26 22:17:02 +00005typedef struct { char x[3]; } A0;
6void foo (int i, ...);
7
8
Eric Christopherd3e46dd2011-07-28 00:13:53 +00009// CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, [1 x i32] {{.*}})
Eric Christopher3883e662011-07-26 22:17:02 +000010int main (void)
11{
12 A0 a3;
13 a3.x[0] = 0;
14 a3.x[0] = 0;
15 a3.x[2] = 26;
16 foo (1, a3 );
17 return 0;
18}