repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix unused warnings.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
20010404-1.c
blob
f890118e15d6838533ad9905b53098802c32a4a1
1
/* This testcase caused a floating point exception in the compiler when
2
compiled with -O2. The crash occurs when trying to simplify division
3
and modulo operations. */
4
5
#include <limits.h>
6
7
extern
void
bar
(
int
);
8
9
void
foo
()
10
{
11
int
a
=
INT_MIN
;
12
int
b
= -
1
;
13
bar
(
a
/
b
);
14
bar
(
a
%
b
);
15
}