| // Copyright (c) 2018, 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. |
| public class MergeDefaultMethodIntoClassTest { |
| public static void main(String[] args) { |
| // Note: Important that the static type of [obj] is A, such that the call to f becomes an |
| // invoke-interface instruction and not invoke-virtual instruction. |
| // Ensure that the instantiations are not dead code eliminated. |
| static void escape(Object o) { |
| if (System.currentTimeMillis() < 0) { |
| System.out.println("In A.f"); |
| public static class B implements A {} |