blob: 72cebc64481fc4fd2803985cf46606d61878a031 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
4typedef struct {
5 char p;
6 short q;
7 char r;
8 int X;
9 short Y, Z;
10 int Q;
11} foo;
12
13int test(foo X, float);
14int testE(char,short,char,int,int,float);
15void test3(foo *X) {
16 X->q = 1;
17}
18
19void test2(foo Y) {
20 testE(Y.p, Y.q, Y.r, Y.X, Y.Y, 0.1f);
21 test(Y, 0.1f);
22 test2(Y);
23 test3(&Y);
24}
25