jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 4035346 4097402
4* @summary Compiler used to allow this initialization, despite the overflow.
5* @author turnidge
6*
7* @compile/fail/ref=UncaughtOverflow.out -XDrawDiagnostics UncaughtOverflow.java
8*/
9
10public
11class UncaughtOverflow {
12int i1 = 100000000000;
13int i2 = -2147483649;
14}
15