This test has been automatized
[oota-llvm.git] / test / CFrontend / 2002-02-17-ArgumentAddress.c
1 int test(int X) {
2   return X;
3 }
4
5 void abc(int *X);
6 int def(int Y, int Z) {
7   abc(&Z);
8   return Y;
9 }
10
11 struct Test { short X, x; int Y, Z; };
12
13 int Testing(struct Test *A) {
14   return A->X+A->Y;
15 }
16
17 int Test2(int X, struct Test A, int Y) {
18   return X+Y+A.X+A.Y;
19 }
20 int Test3(struct Test A, struct Test B) {
21   return A.X+A.Y+B.Y+B.Z;
22 }
23
24 struct Test Test4(struct Test A) {
25   return A;
26 }
27
28 int Test6() {
29   int B[200];
30   return B[4];
31 }
32
33 struct STest2 { int X; short Y[4]; double Z; };
34
35 struct STest2 Test7(struct STest2 X) {
36   return X;
37 }