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
PR testsuite/20772
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
expect1.C
1
// PR c++/13239
2
// { dg-do run }
3
// { dg-options "-O2" }
4
5
extern "C" void abort (void);
6
7
struct Y {
8
int i;
9
};
10
11
bool foo () { return true; }
12
Y bar () { Y y = {0}; return y; }
13
14
int main ()
15
{
16
__builtin_expect (foo () && (bar ().i) == 0, 0) ? 0 : (abort (), 1);
17
}