aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR5913.java
blob: 0ae68be215e08554936e864d80814dcd17e8ed6a (plain)
1
2
3
4
5
6
7
8
9
10
class PR5913
{
  public static void main(String[] args)
  {
    boolean test1 = ("" + 1) instanceof String;
    // This also tests literal parsing, as mentioned in PR 5902.
    boolean test2 = "" + 0x1instanceof String;
    System.exit((test1 && test2) ? 0 : 1);
  }
}