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
/
pr106781.c
blob
339c28c41df0d4d22cd6170ba7dd5675012e7c1c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wno-div-by-zero" } */
3
4
int
n
;
5
6
__attribute__
((
noinline
,
returns_twice
))
static int
7
bar
(
int
)
8
{
9
n
/=
0
;
10
11
return
n
;
12
}
13
14
int
15
foo
(
int
x
)
16
{
17
return
bar
(
x
);
18
}