xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/pr5406.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // REQUIRES: arm-registered-target
2f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
3f4a2713aSLionel Sambuc // PR 5406
4f4a2713aSLionel Sambuc 
5f4a2713aSLionel Sambuc typedef struct { char x[3]; } A0;
6f4a2713aSLionel Sambuc void foo (int i, ...);
7f4a2713aSLionel Sambuc 
8f4a2713aSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc // CHECK: call void (i32, ...)* @foo(i32 1, [1 x i32] {{.*}})
main(void)10f4a2713aSLionel Sambuc int main (void)
11f4a2713aSLionel Sambuc {
12f4a2713aSLionel Sambuc   A0 a3;
13f4a2713aSLionel Sambuc   a3.x[0] = 0;
14f4a2713aSLionel Sambuc   a3.x[0] = 0;
15f4a2713aSLionel Sambuc   a3.x[2] = 26;
16f4a2713aSLionel Sambuc   foo (1,  a3 );
17f4a2713aSLionel Sambuc   return 0;
18f4a2713aSLionel Sambuc }
19