Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
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
();
}