Files
kotlin-fork/native/native.tests/testData/codegen/literals/strdedup2.kt
T
Vladimir Sukharev d972fec13c [K/N][tests] Move tests into better places
^KT-61259
2024-01-04 18:24:37 +00:00

23 lines
580 B
Kotlin
Vendored

/*
* Copyright 2010-2018 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.
*/
// TODO: string deduplication across several components seems to require
// linking them as bitcode modules before translating to machine code.
// IGNORE_BACKEND: JVM, JVM_IR
// DISABLE_NATIVE
// WITH_STDLIB
import kotlin.test.*
fun box(): String {
val str1 = ""
val str2 = "hello".subSequence(2, 2)
if(!(str1 == str2))
return "FAIL =="
if(!(str1 === str2))
return "FAIL ==="
return "OK"
}