OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix implicit int
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p783a.C
1
// Copying into an object directly is a lose according to tiemann.
2
// Deleting an object many times is a lose.
3
// prms-id: 783
4
5
extern "C" void printf (char *, ...);
6
extern "C" void exit (int);
7
8
class C {
9
int i;
10
public:
11
C() {
12
i = 1;
13
}
14
~C() {
15
if (i != 1) {
16
exit(1);
17
}
18
i = 0;
19
}
20
};
21
22
int main(int argc, char**argv) {
23
C c;
24
c = C();
25
return 0;
26
}