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
/
pr103207.c
blob
b3043f471fb61f06e224386a397d93c90c66b44f
1
// { dg-do compile }
2
// { dg-options "-O2 --param case-values-threshold=1 -w" }
3
4
int
f
(
__INT32_TYPE__ i
)
5
{
6
switch
(
i
) {
7
case
2147483647
:
8
return
1
;
9
case
9223372036854775807L
:
10
return
2
;
11
case
(
2147483647
*
4
)%
4
:
12
return
4
;
13
}
14
return
0
;
15
}