Update spec black box tests

This commit is contained in:
Victor Petukhov
2021-07-23 16:25:03 +03:00
committed by Mikhael Bogdanov
parent baaa615e09
commit cba224b7b8
32 changed files with 505 additions and 116 deletions
@@ -1,15 +0,0 @@
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Foo$Companion.<init>()V @2: checkcast
Reason:
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
Current Frame:
bci: @2
flags: { flagThisUninit }
locals: { uninitializedThis }
stack: { uninitializedThis, uninitializedThis }
Bytecode:
0x0000000: 2a2a c000 02b6 000a b700 0db1
Foo.<clinit>(13.kt)
@@ -1,20 +0,0 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 13
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
open class Foo(val prop: Int) {
companion object : Foo(prop)
}
fun box(): String? {
if (Foo(42) == null) return null
return "OK"
}
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_14Kt.box(14.kt:17)
@@ -1,20 +0,0 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 14
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
open class Foo(val prop: Int) {
companion object MyCompanion : Foo(Foo.prop)
}
fun box(): String? {
if (Foo(42) == null) return null
return "OK"
}
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_15Kt.box(15.kt:17)
@@ -1,20 +0,0 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 15
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
open class Foo(val prop: Int) {
object MyObject : Foo(MyObject.prop)
}
fun box(): String? {
if (Foo.MyObject == null) return null
return "OK"
}
@@ -1,15 +0,0 @@
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Foo$Companion.<init>()V @2: checkcast
Reason:
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
Current Frame:
bci: @2
flags: { flagThisUninit }
locals: { uninitializedThis }
stack: { uninitializedThis, uninitializedThis }
Bytecode:
0x0000000: 2a2a c000 02b6 000a b700 0db1
Foo.<clinit>(16.kt)
@@ -1,20 +0,0 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 16
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
open class Foo(val prop: Int) {
companion object : Foo(prop)
}
fun box(): String? {
if (Foo(42) == null) return null
return "OK"
}
@@ -1,15 +0,0 @@
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Foo$Companion.<init>()V @2: checkcast
Reason:
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
Current Frame:
bci: @2
flags: { flagThisUninit }
locals: { uninitializedThis }
stack: { uninitializedThis, uninitializedThis }
Bytecode:
0x0000000: 2a2a c000 02b6 000a b700 0db1
Foo.<clinit>(17.kt)
@@ -1,20 +0,0 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 17
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
open class Foo(val prop: Int) {
companion object : Foo(this.prop)
}
fun box(): String? {
if (Foo(42) == null) return null
return "OK"
}
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_18Kt.box(18.kt:17)
@@ -1,20 +0,0 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 18
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
open class Foo(val prop: Int) {
companion object : Foo(Companion.prop)
}
fun box(): String? {
if (Foo(42) == null) return null
return "OK"
}
@@ -1,2 +0,0 @@
java.lang.ExceptionInInitializerError
_19Kt.box(19.kt:17)
@@ -1,20 +0,0 @@
/*
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: objects, inheritance
* NUMBER: 19
* DESCRIPTION: Access to class members in the super constructor call of an object.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-25289
* EXCEPTION: runtime
*/
open class Foo(val prop: Int) {
object MyObject : Foo(MyObject.prop)
}
fun box(): String? {
if (Foo.MyObject == null) return null
return "OK"
}