Home | History | Annotate | Download | only in assumenosideeffects1
      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 assumenosideeffects1;
      5 
      6 public class Assumenosideeffects {
      7 
      8   public static void main(String[] args) {
      9     noSideEffectVoid();
     10     noSideEffectInt();
     11   }
     12 
     13   @CheckDiscarded
     14   public static void noSideEffectVoid() {
     15     System.out.println("noSideEffectVoid");
     16   }
     17 
     18   @CheckDiscarded
     19   public static int noSideEffectInt() {
     20     System.out.println("noSideEffectInt");
     21     return 0;
     22   }
     23 }
     24