blob: 6f594197726fb3851ae23288cb2723e4f1b0aea8 [file] [log] [blame]
// 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.
package classmerging;
public class SuperCallRewritingTest {
public static void main(String[] args) {
System.out.println("Calling referencedMethod on SubClassThatReferencesSuperMethod");
SubClassThatReferencesSuperMethod obj = new SubClassThatReferencesSuperMethod();
System.out.println(obj.referencedMethod());
// Ensure that the instantiations are not dead code eliminated.
escape(obj);
}
@NeverInline
static void escape(Object o) {
if (System.currentTimeMillis() < 0) {
System.out.println(o);
}
}
}