author | duke |
Wed, 05 Jul 2017 16:38:26 +0200 | |
changeset 738 | 7c47c40d4bd5 |
parent 376 | 7209afaaef5d |
child 961 | 7fb3b13d4205 |
child 993 | ef1ed5e7d732 |
permissions | -rw-r--r-- |
376
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
1 |
/* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
2 |
* Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
3 |
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
4 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
5 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
6 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
7 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
8 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
9 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
10 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
11 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
12 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
13 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
14 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
15 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
16 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
17 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
18 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
19 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
20 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
21 |
* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
22 |
*/ |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
23 |
|
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
24 |
/* |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
25 |
* @test |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
26 |
* @bug 6646019 |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
27 |
* @summary array subscript expressions become top() with -d64 |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
28 |
* @run main/othervm -Xcomp -XX:CompileOnly=Test.test Test |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
29 |
*/ |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
30 |
|
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
31 |
|
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
32 |
public class Test { |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
33 |
final static int i = 2076285318; |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
34 |
long l = 2; |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
35 |
short s; |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
36 |
|
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
37 |
public static void main(String[] args) { |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
38 |
Test t = new Test(); |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
39 |
try { t.test(); } |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
40 |
catch (Throwable e) { |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
41 |
if (t.l != 5) { |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
42 |
System.out.println("Fails: " + t.l + " != 5"); |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
43 |
} |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
44 |
} |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
45 |
} |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
46 |
|
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
47 |
private void test() { |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
48 |
l = 5; |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
49 |
l = (new short[(byte)-2])[(byte)(l = i)]; |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
50 |
} |
7209afaaef5d
6646019: array subscript expressions become top() with -d64
rasbold
parents:
diff
changeset
|
51 |
} |