blob: 13973b6df2f4e182acf1da857ff4db3baeb11fd1 [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 horizontalclassmerging;
import com.android.tools.r8.NeverClassInline;
import com.android.tools.r8.NeverInline;
@NeverClassInline
public class NestHostA {
@NeverInline
private void privatePrint(String v) {
System.out.println(v);
}
@NeverInline
private static void privateStaticPrint(String v) {
System.out.println(v);
}
@NeverClassInline
public static class NestMemberA {
public NestMemberA() {
NestHostA.privateStaticPrint("NestHostA$NestMemberA");
}
}
@NeverClassInline
public static class NestMemberB {
public NestMemberB(NestHostA host) {
host.privatePrint("NestHostA$NestMemberB");
}
}
}