Home | History | Annotate | Download | only in loadconst
      1 // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
      2 // for details. All rights reserved. Use of this source code is governed by a
      3 // BSD-style license that can be found in the LICENSE file.
      4 package loadconst;
      5 
      6 public class LoadConst {
      7 
      8   public static void main(String[] args) {
      9     // ldc int
     10     System.out.print(0x7fffffff);
     11     // ldc float
     12     System.out.print(1234.5);
     13     // ldc string
     14     System.out.println("foobar");
     15     // ldc const class
     16     System.out.println(LoadConst.class);
     17   }
     18 }
     19