blob: 8547823a2fd97ce36fbeb7cd13f4bb8a61689901 [file] [log] [blame]
// This test is ignored until KT-36794 is fixed.
// IGNORE_BACKEND: JVM
// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm
class Outer {
class Inner {
fun f() { assert(true) }
}
}
// We set the assertion status based on top-level classes.
// 0 LDC LOuter\$Inner;.class
// 1 desiredAssertionStatus
// The assertion disabled field should be package local.
// 1 final static synthetic Z \$assertionsDisabled
// 0 public final static synthetic Z \$assertionsDisabled
// 0 protected final static synthetic Z \$assertionsDisabled
// 0 private final static synthetic Z \$assertionsDisabled
// Outer\$Inner.<clinit>:
// 1 LDC LOuter;.class\s*INVOKEVIRTUAL java/lang/Class.desiredAssertionStatus \(\)Z
// 1 PUTSTATIC Outer\$Inner.\$assertionsDisabled : Z
// Outer\$Inner.f:
// 1 GETSTATIC Outer\$Inner.\$assertionsDisabled