• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5# Keep the application entry point. Get rid of everything that is not
6# reachable from there.
7-keep public class assumenosideeffects4.Assumenosideeffects {
8  public static final int ASSUMED_VALUE_0;
9  public static final int ASSUMED_VALUE_1;
10  public static final long ASSUMED_VALUE_0L;
11  public static final long ASSUMED_VALUE_1L;
12  public static void main(...);
13}
14
15# Mark some methods to have no side effects.
16-assumenosideeffects public class assumenosideeffects4.Assumenosideeffects {
17  public static int method0(...) return assumenosideeffects4.Assumenosideeffects.ASSUMED_VALUE_1;
18  public static int method1(...) return assumenosideeffects4.Assumenosideeffects.ASSUMED_VALUE_0;
19  public static long method0L(...) return assumenosideeffects4.Assumenosideeffects.ASSUMED_VALUE_1L;
20  public static long method1L(...) return assumenosideeffects4.Assumenosideeffects.ASSUMED_VALUE_0L;
21}
22
23# Allow access modification to enable minifcation.
24-allowaccessmodification
25
26# Check that methods has been discarded.
27-checkdiscard class * {
28  @assumenosideeffects4.CheckDiscarded *;
29}
30