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
Disable gnat.dg/socket1.adb on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr56956.c
blob
996e1dd8a795c89d417c38c73bf6857c3130bd28
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=undefined -fsanitize-undefined-trap-on-error" } */
3
4
unsigned int
__attribute__
((
noinline
,
noclone
))
5
foo
(
unsigned int
x
)
6
{
7
return
x
<=
__INT_MAX__
?
x
: -
x
;
8
}
9
10
int
11
main
()
12
{
13
volatile
unsigned int
tem
=
foo
(-
__INT_MAX__
-
1
);
14
return
0
;
15
}