blob: 2431724dc3a88db16e5d4fc6c1acdc8e13593d9b [file] [log] [blame]
// Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.enumunboxing.examplelib1;
import com.android.tools.r8.NeverClassInline;
import com.android.tools.r8.NeverInline;
public class JavaLibrary1 {
@NeverClassInline
public enum LibEnum1 {
A,
B
}
@NeverInline
private static LibEnum1 getEnum() {
return System.currentTimeMillis() > 0 ? LibEnum1.A : LibEnum1.B;
}
public static void libCall() {
System.out.println(getEnum().ordinal());
System.out.println(0);
}
}