Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGen/pr5406.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // REQUIRES: arm-registered-target |
2 // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s | |
3 // PR 5406 | |
4 | |
5 typedef struct { char x[3]; } A0; | |
6 void foo (int i, ...); | |
7 | |
8 | |
9 // CHECK: call void (i32, ...) @foo(i32 1, [1 x i32] {{.*}}) | |
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 } |