diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-20 23:33:31 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-20 23:33:31 +0000 |
commit | 6b48720ae0ae977ca052472562fadb498a6dcb6f (patch) | |
tree | 2860bbd003807c6c2c7c801ade5748a9cfb929fa /test/CodeGenCXX/default-destructor-synthesis.cpp | |
parent | 1c536bf6bbb0cdc039cff754825b36f9abfe0629 (diff) |
Added member arrays to more tests now that ir-gen supports it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/default-destructor-synthesis.cpp')
-rw-r--r-- | test/CodeGenCXX/default-destructor-synthesis.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/CodeGenCXX/default-destructor-synthesis.cpp b/test/CodeGenCXX/default-destructor-synthesis.cpp index 0f6849cf54..c9b48ed9c7 100644 --- a/test/CodeGenCXX/default-destructor-synthesis.cpp +++ b/test/CodeGenCXX/default-destructor-synthesis.cpp @@ -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; |