[Wasm] Handle unsigned arrays in the vararg lowering

This commit is contained in:
Igor Laevsky
2021-11-03 17:57:21 +03:00
parent d1d2bd246b
commit 0915dac1f9
15 changed files with 10 additions and 21 deletions
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun test(uis: UIntArray): String {
var s = ""
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: UNSIGNED_ARRAYS
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: UNSIGNED_ARRAYS
// WITH_RUNTIME
class C<T>(val x: T, vararg ys: UInt) {
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun box(): String {
val uia = uintArrayOf()
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: UNSIGNED_ARRAYS
// WITH_RUNTIME
fun box(): String {
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: UNSIGNED_ARRAYS
// WITH_RUNTIME
fun test() = uintArrayOf(1u).size
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: UNSIGNED_ARRAYS
// WITH_RUNTIME
fun uint(vararg us: UInt): UIntArray = us