Sign in
llvm
/
llvm-archive
/
2d92d8f3eda4630e3e80be62081ca797828d58e1
/
.
/
llvm-gcc-4.2
/
libjava
/
testsuite
/
libjava.lang
/
Overflow.java
blob: 312e9cb209f201b672293f9ae05a9b5558306fdc [
file
] [
log
] [
blame
]
class
Overflow
{
static
int
test
(
int
x
)
{
return
(
2
*
x
)/
2
;
}
public
static
void
main
(
String
argv
[])
{
int
x
=
Integer
.
MAX_VALUE
;
if
(
test
(
x
)
==
x
)
throw
new
RuntimeException
();
}
}