Added member arrays to more tests now that ir-gen supports it.

llvm-svn: 79575
This commit is contained in:
Fariborz Jahanian 2009-08-20 23:33:31 +00:00
parent da666c801c
commit 9c0d05454a
1 changed files with 9 additions and 3 deletions

View File

@ -6,22 +6,24 @@
extern "C" int printf(...);
int count = 1;
struct S {
S() : iS(1), fS(1.23) {};
S() : iS(count++), fS(1.23) {};
~S(){printf("S::~S(%d, %f)\n", iS, fS); };
int iS;
float fS;
};
struct Q {
Q() : iQ(2), dQ(2.34) {};
Q() : iQ(count++), dQ(2.34) {};
~Q(){printf("Q::~Q(%d, %f)\n", iQ, dQ); };
int iQ;
double dQ;
};
struct P {
P() : fP(3.45) , iP(3) {};
P() : fP(3.45) , iP(count++) {};
~P(){printf("P::~P(%d, %f)\n", iP, fP); };
float fP;
int iP;
@ -34,6 +36,10 @@ struct M : Q, P {
P p;
P p_arr[3];
Q q_arr[2][3];
};
M gm;