blob: 5843bfc1a881f7a1813212cdf80e3027d73740ef [file] [log] [blame]
// { dg-do run }
// GROUPS passed destructors
#include <stdio.h>
int destruct = 2;
class a {
public:
char *p;
a(){ ; }
~a(){ destruct--; if (! destruct) printf ("PASS\n");}
};
a test(){
return a();
}
int main(){
a ai;
ai = test();
}