Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
dtors4.C
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
();
}