blob: 596a3f12f7749f342bb8091692cae68ae65892d4 [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.debuginfo;
import com.android.tools.r8.AlwaysInline;
public class DexPcWithDebugInfoForOverloadedMethodsTest {
@AlwaysInline
private static void inlinee(String message) {
if (System.currentTimeMillis() > 0) {
throw new RuntimeException(message);
}
}
public static void overloaded(int x) {
inlinee("overloaded(int)" + x);
}
public static void overloaded(String y) {
inlinee("overloaded(String)" + y);
}
public static void main(String[] args) {
if (args.length > 0) {
overloaded(42);
} else {
overloaded("42");
}
}
}