blob: 0b1f277592fb71e91b704dbf392c663c44a66a7e [file] [log] [blame]
Duncan Sandsbb8f5902010-11-25 21:24:35 +00001// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
Rafael Espindola908100f2010-01-17 04:44:55 +00002// PR 5406
3
Rafael Espindolac7aa48d2010-01-17 19:20:45 +00004// XFAIL: *
5// XTARGET: arm
Rafael Espindola908100f2010-01-17 04:44:55 +00006
7typedef struct { char x[3]; } A0;
8void foo (int i, ...);
9
10
Rafael Espindola5869dc02010-06-15 22:16:40 +000011// CHECK: call void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind
Rafael Espindola908100f2010-01-17 04:44:55 +000012int main (void)
13{
14 A0 a3;
15 a3.x[0] = 0;
16 a3.x[0] = 0;
17 a3.x[2] = 26;
18 foo (1, a3 );
19 return 0;
20}