FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.benjamin / 15822.C
blobecd93afd8690a1660c2ec1acd5994e2f70dec817
1 // 981203 bkoz
2 // g++/15822
4 #include <assert.h>
6 static unsigned int gcount;
8 struct playahermosa {
9   playahermosa() { ++gcount; }
10   playahermosa(const playahermosa &) { ++gcount; }
11   ~playahermosa() { --gcount; }
14 struct playacoco {
15   playacoco(const playahermosa& = playahermosa()) {  } //create a temporary
18 void foo(playacoco *) { }
20 int main() 
22    playacoco bar[2];
23    foo(bar);
24    assert (gcount == 0);
26    return 0;