blob: 99ac10bb5c2bde27ffb8691b5f1f2a9c6124fb41 [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 NestHostB {
@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() {
NestHostB.privateStaticPrint("NestHostB$NestMemberA");
}
}
@NeverClassInline
public static class NestMemberB {
public NestMemberB(NestHostB host) {
host.privatePrint("NestHostB$NestMemberB");
}
}
}