Add WITH_RUNTIME or WITH_REFLECT to boxWithStdlib testData

This commit is contained in:
Alexander Udalov
2016-03-07 12:47:06 +03:00
committed by Alexander Udalov
parent 2564a2f91f
commit 22bfc9786a
525 changed files with 1122 additions and 164 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
// WITH_RUNTIME
// This is a big, ugly, semi-auto generated test.
// Use corresponding 'Small' test for debug.
@@ -247,4 +248,4 @@ fun box(): String {
}
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
fun <T> test1() = null as T
fun <T> test2(): T {
val a : Any? = null
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.*
class Itr : Iterator<String> by ArrayList<String>().iterator()
@@ -123,4 +125,4 @@ fun box(): String {
asSucceeds("hashMapEntry as MutableMap.MutableEntry") { hashMapEntry as MutableMap.MutableEntry<*, *> }
return "OK"
}
}
+2 -1
View File
@@ -1,3 +1,4 @@
// WITH_RUNTIME
// This is a big, ugly, semi-auto generated test.
// Use corresponding 'Small' test for debug.
@@ -174,4 +175,4 @@ fun box(): String {
}
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_REFLECT
fun fn0() {}
fun fn1(x: Any) {}
@@ -52,4 +54,4 @@ fun box(): String {
assert(afoo is Function1<*, *>) { "afoo is Function1<*, *>" }
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.*
class Itr : Iterator<String> by ArrayList<String>().iterator()
@@ -106,4 +108,4 @@ fun box(): String {
assert((mlist as Any) !is MutableIterator<*>) { "ML !is MutableIterator" }
return "OK"
}
}
@@ -1,3 +1,4 @@
// WITH_RUNTIME
// This is a big, ugly, semi-auto generated test.
// Use corresponding 'Small' test for debug.
@@ -270,4 +271,4 @@ fun box(): String {
}
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.*
class Itr : Iterator<String> by ArrayList<String>().iterator()
@@ -125,4 +127,4 @@ fun box(): String {
reifiedAsSucceeds<MutableMap.MutableEntry<*, *>>(hashMapEntry, "reifiedAs<MutableMap.MutableEntry<*, *>>(hashMapEntry)")
return "OK"
}
}
@@ -1,3 +1,4 @@
// WITH_RUNTIME
// This is a big, ugly, semi-auto generated test.
// Use corresponding 'Small' test for debug.
@@ -188,4 +189,4 @@ fun box(): String {
}
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
fun fn0() {}
fun fn1(x: Any) {}
@@ -33,4 +35,4 @@ fun box(): String {
assertReifiedIsNot<Function1<*, *>>(f0, "Function1<*, *>")
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.*
class Itr : Iterator<String> by ArrayList<String>().iterator()
@@ -106,4 +108,4 @@ fun box(): String {
assert(reifiedIs<MutableMap.MutableEntry<*, *>>(hashMapEntry)) { "reifiedIs<MutableMap.MutableEntry<*, *>>(hashMapEntry)"}
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.*
class Itr : Iterator<String> by ArrayList<String>().iterator()
@@ -136,4 +138,4 @@ fun box(): String {
reifiedSafeAsReturnsNull<MutableMap.MutableEntry<*, *>>(null, "reifiedSafeAs<MutableMap.MutableEntry<*, *>>(null)")
return "OK"
}
}
@@ -1,3 +1,4 @@
// WITH_RUNTIME
// This is a big, ugly, semi-auto generated test.
// Use corresponding 'Small' test for debug.
@@ -324,4 +325,4 @@ fun box(): String {
}
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
fun fn0() {}
fun fn1(x: Any) {}
@@ -31,4 +33,4 @@ fun box(): String {
safeAsReturnsNonNull("f1 as? Function1<*, *>") { f1 as? Function1<*, *> }
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
import java.util.*
class Itr : Iterator<String> by ArrayList<String>().iterator()
@@ -134,4 +136,4 @@ fun box(): String {
safeAsReturnsNull("mlist as? MutableIterator") { mlist as? MutableIterator<*> }
return "OK"
}
}
@@ -1,3 +1,5 @@
// WITH_RUNTIME
fun foo() {}
fun box(): String {
@@ -1,3 +1,5 @@
// WITH_RUNTIME
fun unsupported(): Nothing = throw UnsupportedOperationException()
class Weird : Iterator<String>, MutableIterable<String>, MutableMap.MutableEntry<String, String> {
@@ -135,4 +137,4 @@ fun box(): String {
reifiedSafeAsReturnsNonNull<MutableMap.MutableEntry<*, *>>(w, "reified w as? MutableMap.MutableEntry<*, *>")
return "OK"
}
}