Fix InitAndRegisterGlobal in new MM (#4673)
This commit is contained in:
committed by
Vasily Levchenko
parent
c01ad100a3
commit
2b69a0d03a
@@ -2865,6 +2865,10 @@ task initializers7(type: KonanLocalTest) {
|
||||
source = "runtime/basic/initializers7.kt"
|
||||
}
|
||||
|
||||
task initializers8(type: KonanLocalTest) {
|
||||
source = "runtime/basic/initializers8.kt"
|
||||
}
|
||||
|
||||
task expression_as_statement(type: KonanLocalTest) {
|
||||
expectedFail = (project.testTarget == 'wasm32') // uses exceptions.
|
||||
goldValue = "Ok\n"
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
package runtime.basic.initializers8
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
var globalString = "abc"
|
||||
|
||||
@Test fun runTest() {
|
||||
assertEquals("abc", globalString)
|
||||
}
|
||||
Reference in New Issue
Block a user