repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
cleanup1.C
blob
27eb8ede486b3672c2779e397f0cdf78d19f8327
1
// { dg-do run }
2
// Bug: fold is too eager about pushing down CLEANUP_POINT_EXPR.
3
4
int d;
5
6
struct A {
7
A() { }
8
~A() { d = 1; }
9
};
10
11
int f (const A& a)
12
{
13
return 1;
14
}
15
16
int main ()
17
{
18
if (f (A()) && d == 0)
19
return 0;
20
return 1;
21
}