[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / 2002-02-17-ArgumentAddress.c
blobf3a7b91af236eec7a6387afceafe355665b37d99
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
3 int test(int X) {
4 return X;
7 void abc(int *X);
8 int def(int Y, int Z) {
9 abc(&Z);
10 return Y;
13 struct Test { short X, x; int Y, Z; };
15 int Testing(struct Test *A) {
16 return A->X+A->Y;
19 int Test2(int X, struct Test A, int Y) {
20 return X+Y+A.X+A.Y;
22 int Test3(struct Test A, struct Test B) {
23 return A.X+A.Y+B.Y+B.Z;
26 struct Test Test4(struct Test A) {
27 return A;
30 int Test6(void) {
31 int B[200];
32 return B[4];
35 struct STest2 { int X; short Y[4]; double Z; };
37 struct STest2 Test7(struct STest2 X) {
38 return X;