blob: a97fc6d6b9bc81474371514dce271dbc71978e54 [file] [log] [blame]
Tamas Kenez056a9322017-11-16 12:22:07 +01001// 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
5public class LineNumberOptimization1 {
6 private static void callThisFromSameFile() {
7 System.out.println("callThisFromSameFile");
8 LineNumberOptimization2.callThisFromAnotherFile();
9 }
10
Tamas Kenezec4d2d32017-11-16 17:51:48 +010011 private static void callThisFromSameFile(int a) {
12 System.out.println("callThisFromSameFile second overload");
13 }
14
15 private static void callThisFromSameFile(int a, int b) {
16 System.out.println("callThisFromSameFile third overload");
17 }
18
Tamas Kenez056a9322017-11-16 12:22:07 +010019 public static void main(String[] args) {
20 callThisFromSameFile();
Tamas Kenezec4d2d32017-11-16 17:51:48 +010021 callThisFromSameFile(1);
22 callThisFromSameFile(1, 2);
Tamas Kenez056a9322017-11-16 12:22:07 +010023 }
24}