diff options
| author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-02 21:20:46 +0000 |
|---|---|---|
| committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-02 21:20:46 +0000 |
| commit | 572c28962ecce76c43a77174801e44dfdfe9bac9 (patch) | |
| tree | 489c5ba70ebca4a8c68b6e6cfbbc6dd6343b586b /libjava/testsuite/libjava.compile | |
| parent | ece3a793c48557f7b525fff8e127aa301a8c3422 (diff) | |
| download | ppe42-gcc-572c28962ecce76c43a77174801e44dfdfe9bac9.tar.gz ppe42-gcc-572c28962ecce76c43a77174801e44dfdfe9bac9.zip | |
2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
PR java/16701
* parse.y (fold_constant_for_init): Call resolve_field_access with
correct current_class context.
2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.compile/PR16701.java: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85453 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
| -rw-r--r-- | libjava/testsuite/libjava.compile/PR16701.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR16701.java b/libjava/testsuite/libjava.compile/PR16701.java new file mode 100644 index 00000000000..60d459a69c7 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR16701.java @@ -0,0 +1,10 @@ +class Cl +{ + private static final int CONSTANT1 = 0x001; + public static final int CONSTANT2 = 0x002 >> CONSTANT1; +} + +public class PR16701 +{ + public static final int VALUE = Cl.CONSTANT2; +} |

