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
2010-02-10 Joost VandeVondele <jv244@cam.ac.uk>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr39867.c
1
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
4
int main (void)
5
{
6
int exp = -1;
7
/* Wrong folding of the LHS to an unsigned MAX leads to 4294967295 != 2. */
8
if ((exp < 2 ? 2U : (unsigned int) exp) != 2)
9
link_error ();
10
return 0;
11
}
12