Added a regression test for Char constant serialization.
This commit is contained in:
committed by
alexander-gorshenev
parent
756fe0735b
commit
b93188a056
@@ -2463,6 +2463,12 @@ task serialized_enum_ordinal(type: LinkKonanTest) {
|
|||||||
goldValue = "0\n1\n2\nb\n"
|
goldValue = "0\n1\n2\nb\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task serialized_char_constant(type: LinkKonanTest) {
|
||||||
|
source = "serialization/use_char_const.kt"
|
||||||
|
lib = "serialization/char_const.kt"
|
||||||
|
goldValue = "Ы\n"
|
||||||
|
}
|
||||||
|
|
||||||
task testing_annotations(type: RunStandaloneKonanTest) {
|
task testing_annotations(type: RunStandaloneKonanTest) {
|
||||||
source = "testing/annotations.kt"
|
source = "testing/annotations.kt"
|
||||||
flags = ['-tr']
|
flags = ['-tr']
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
inline fun foo(x: Char = '\u042b') = x
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fun main(args: Array<String>) {
|
||||||
|
println(foo())
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user