Eric Christopher | d3e46dd | 2011-07-28 00:13:53 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 2 | // PR 5406 |
| 3 | |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 4 | typedef struct { char x[3]; } A0; |
| 5 | void foo (int i, ...); |
| 6 | |
| 7 | |
Eric Christopher | d3e46dd | 2011-07-28 00:13:53 +0000 | [diff] [blame] | 8 | // CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, [1 x i32] {{.*}}) |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 9 | int 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 | } |