1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
test(int X)3 int test(int X) {
4 return X;
5 }
6
7 void abc(int *X);
def(int Y,int Z)8 int def(int Y, int Z) {
9 abc(&Z);
10 return Y;
11 }
12
13 struct Test { short X, x; int Y, Z; };
14
Testing(struct Test * A)15 int Testing(struct Test *A) {
16 return A->X+A->Y;
17 }
18
Test2(int X,struct Test A,int Y)19 int Test2(int X, struct Test A, int Y) {
20 return X+Y+A.X+A.Y;
21 }
Test3(struct Test A,struct Test B)22 int Test3(struct Test A, struct Test B) {
23 return A.X+A.Y+B.Y+B.Z;
24 }
25
Test4(struct Test A)26 struct Test Test4(struct Test A) {
27 return A;
28 }
29
Test6()30 int Test6() {
31 int B[200];
32 return B[4];
33 }
34
35 struct STest2 { int X; short Y[4]; double Z; };
36
Test7(struct STest2 X)37 struct STest2 Test7(struct STest2 X) {
38 return X;
39 }
40