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 assumenosideeffects5; 5 6 public class Assumenosideeffects { 7 main(String[] args)8 public static void main(String[] args) { 9 System.out.println(methodTrue()); 10 System.out.println(methodFalse()); 11 } 12 13 @CheckDiscarded methodTrue()14 public static boolean methodTrue() { 15 System.out.println("methodTrue"); 16 return true; 17 } 18 19 @CheckDiscarded methodFalse()20 public static boolean methodFalse() { 21 System.out.println("methodFalse"); 22 return false; 23 } 24 } 25