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
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
ubsan
/
ipa-icf-1.c
blob
1638ec45e37d247ee402e8c78d883cf6bbc9703d
1
/* { dg-do run } */
2
/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
3
/* { dg-options "-fsanitize=undefined -fipa-icf" } */
4
5
__attribute__
((
noinline
,
noclone
))
6
int
f1
(
int
x
,
int
y
)
7
{
8
return
x
+
y
;
9
}
10
11
__attribute__
((
noinline
,
noclone
))
12
int
f2
(
int
x
,
int
y
)
13
{
14
return
x
-
y
;
15
}
16
17
int
18
main
()
19
{
20
if
(
f1
(
5
,
6
) !=
11
||
f2
(
5
,
6
) != -
1
)
21
__builtin_abort
();
22
return
0
;
23
}