repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
opt
/
bool1.C
blob
78cdebe32aa5b4ca8d11cffeef2ee0901c0b6adf
1
// PR opt/13869
2
// { dg-do run }
3
// { dg-options "-O2" }
4
5
extern "C" void abort ();
6
7
int test ()
8
{
9
bool my_bool = true;
10
for (int i = 0; i < 10; ++i)
11
{
12
if (!my_bool)
13
;
14
else
15
my_bool = false;
16
};
17
return my_bool;
18
}
19
20
int main ()
21
{
22
if (test ())
23
abort ();
24
return 0;
25
}