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
/
ipa
/
pr95113.c
blob
a8f8c901ebeec1329a267a5165f73f5cf7c01bd8
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
3
/* { dg-require-effective-target exceptions } */
4
5
int
a
,
b
;
6
7
static
inline
long int
8
foo
(
long int
x
,
int
y
)
9
{
10
if
(
y
==
0
)
11
return
0
;
12
13
if
(
x
== -
1
&&
y
== -
1
)
14
return
0
;
15
16
return
x
/
y
;
17
}
18
19
static
inline
int
20
bar
(
int
*
p
)
21
{
22
int
c
=
foo
(
a
,
1
) + *
p
;
23
return
b
;
24
}
25
26
int
27
main
()
28
{
29
int
d
=
0
;
30
b
=
foo
(
1
,
1
);
31
bar
(&
d
);
32
return
0
;
33
}