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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-overflow-7.c
blob
401cbc3c98717d959210e9418111c1be3266fcdf
1
/* { dg-do compile } */
2
/* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */
3
4
/* Source: Ian Lance Taylor. */
5
6
int
7
foo
(
int
i
)
8
{
9
return
i
+
10
>
i
;
/* { dg-warning "assuming signed overflow does not occur" "correct warning" { xfail *-*-* } } */
10
}