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
Verify that empty std::vector is optimized away
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr23047.c
blob
2c963abc4c62a279576133092b46601c84695c18
1
/* { dg-options "-fwrapv" } */
2
#include <limits.h>
3
extern
void
abort
();
4
extern
void
exit
(
int
);
5
void
f
(
int
i
)
6
{
7
i
=
i
>
0
?
i
: -
i
;
8
if
(
i
<
0
)
9
return
;
10
abort
();
11
}
12
13
int
main
(
int
argc
,
char
*
argv
[])
14
{
15
f
(
INT_MIN
);
16
exit
(
0
);
17
}