Introduce WITH_UNSIGNED directive to use unsigned types in tests

This commit is contained in:
Mikhail Zarechenskiy
2018-05-24 01:27:10 +03:00
parent 8f0b073c08
commit e5958d228a
13 changed files with 133 additions and 10 deletions
@@ -0,0 +1,11 @@
// !LANGUAGE: +InlineClasses
// !SKIP_METADATA_VERSION_CHECK
// WITH_UNSIGNED
@Suppress("INVISIBLE_MEMBER")
fun box(): String {
val u1 = UInt(1)
val u2 = UInt(2)
val u3 = u1 + u2
return if (u3.toInt() == 3) "OK" else "fail"
}