1 // Copyright (c) 2017, 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 assumenosideeffects3; 5 6 public class Assumenosideeffects { 7 main(String[] args)8 public static void main(String[] args) { 9 System.out.println(method0()); 10 System.out.println(method1()); 11 System.out.println(method0L() + "L"); 12 System.out.println(method1L() + "L"); 13 } 14 15 @CheckDiscarded method0()16 public static int method0() { 17 return 0; 18 } 19 20 @CheckDiscarded method1()21 public static int method1() { 22 return 1; 23 } 24 25 @CheckDiscarded method0L()26 public static long method0L() { 27 return 0; 28 } 29 30 @CheckDiscarded method1L()31 public static long method1L() { 32 return 1; 33 } 34 } 35