blob: 296123f362827c7957b5cad0f2b5eb3516a85247 [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 com.android.tools.r8.shaking.forceproguardcompatibility.keepattributes;
import com.android.tools.r8.AssumeMayHaveSideEffects;
import com.android.tools.r8.NeverInline;
public class TestKeepAttributes {
public static class InnerClass {
@AssumeMayHaveSideEffects
@NeverInline
InnerClass() {}
}
private static void methodWithMemberClass() {
class MemberClass {
@AssumeMayHaveSideEffects
@NeverInline
private MemberClass() {}
}
new MemberClass();
}
public static void main(String[] args) {
new InnerClass();
methodWithMemberClass();
System.out.print(TestKeepAttributes.class.getDeclaredClasses().length);
}
}