Added a regression test for Char constant serialization.

This commit is contained in:
Alexander Gorshenev
2018-06-26 13:18:23 +03:00
committed by alexander-gorshenev
parent 756fe0735b
commit b93188a056
3 changed files with 10 additions and 0 deletions
+6
View File
@@ -2463,6 +2463,12 @@ task serialized_enum_ordinal(type: LinkKonanTest) {
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) {
source = "testing/annotations.kt"
flags = ['-tr']
@@ -0,0 +1 @@
inline fun foo(x: Char = '\u042b') = x
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
println(foo())
}