[cfe-commits] r79575 - /cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp
Fariborz Jahanian
fjahanian at apple.com
Thu Aug 20 16:33:31 PDT 2009
Author: fjahanian
Date: Thu Aug 20 18:33:31 2009
New Revision: 79575
URL: http://llvm.org/viewvc/llvm-project?rev=79575&view=rev
Log:
Added member arrays to more tests now that ir-gen supports it.
Modified:
cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp
Modified: cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp?rev=79575&r1=79574&r2=79575&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp Thu Aug 20 18:33:31 2009
@@ -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 @@
P p;
+ P p_arr[3];
+
+ Q q_arr[2][3];
+
};
M gm;
More information about the cfe-commits
mailing list