Tamas Kenez | 056a932 | 2017-11-16 12:22:07 +0100 | [diff] [blame] | 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 | public class LineNumberOptimization1 { |
| 6 | private static void callThisFromSameFile() { |
| 7 | System.out.println("callThisFromSameFile"); |
| 8 | LineNumberOptimization2.callThisFromAnotherFile(); |
| 9 | } |
| 10 | |
Tamas Kenez | ec4d2d3 | 2017-11-16 17:51:48 +0100 | [diff] [blame] | 11 | 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 Kenez | 056a932 | 2017-11-16 12:22:07 +0100 | [diff] [blame] | 19 | public static void main(String[] args) { |
| 20 | callThisFromSameFile(); |
Tamas Kenez | ec4d2d3 | 2017-11-16 17:51:48 +0100 | [diff] [blame] | 21 | callThisFromSameFile(1); |
| 22 | callThisFromSameFile(1, 2); |
Tamas Kenez | 056a932 | 2017-11-16 12:22:07 +0100 | [diff] [blame] | 23 | } |
| 24 | } |