Jim Grosbach | f794705 | 2012-07-09 18:34:21 +0000 | [diff] [blame^] | 1 | // REQUIRES: arm-registered-target |
Eric Christopher | d3e46dd | 2011-07-28 00:13:53 +0000 | [diff] [blame] | 2 | // 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] | 3 | // PR 5406 |
| 4 | |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 5 | typedef struct { char x[3]; } A0; |
| 6 | void foo (int i, ...); |
| 7 | |
| 8 | |
Eric Christopher | d3e46dd | 2011-07-28 00:13:53 +0000 | [diff] [blame] | 9 | // CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, [1 x i32] {{.*}}) |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 10 | int 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 | } |