@@ -304,6 +304,7 @@ func checkPtr(
304
304
}
305
305
}
306
306
307
+ #if !os(WASI)
307
308
UnsafeMutablePointerTestSuite.test("moveAssign:from:") {
308
309
let check = checkPtr(UnsafeMutablePointer.moveAssign, true)
309
310
check(Check.Disjoint)
@@ -322,6 +323,7 @@ UnsafeMutablePointerTestSuite.test("moveAssign:from:.Right") {
322
323
check(Check.RightOverlap)
323
324
}
324
325
}
326
+ #endif
325
327
326
328
UnsafeMutablePointerTestSuite.test("assign:from:") {
327
329
let check = checkPtr(UnsafeMutablePointer.assign, true)
@@ -337,6 +339,7 @@ UnsafeMutablePointerTestSuite.test("moveInitialize:from:") {
337
339
check(Check.RightOverlap)
338
340
}
339
341
342
+ #if !os(WASI)
340
343
UnsafeMutablePointerTestSuite.test("initialize:from:") {
341
344
let check = checkPtr(UnsafeMutablePointer.initialize(from:count:), false)
342
345
check(Check.Disjoint)
@@ -355,6 +358,7 @@ UnsafeMutablePointerTestSuite.test("initialize:from:.Right") {
355
358
check(Check.RightOverlap)
356
359
}
357
360
}
361
+ #endif
358
362
359
363
UnsafeMutablePointerTestSuite.test("initialize:from:/immutable") {
360
364
var ptr = UnsafeMutablePointer<Missile>.allocate(capacity: 3)
@@ -400,7 +404,7 @@ ${SelfName}TestSuite.test("customMirror") {
400
404
let ptr = ${SelfType}(bitPattern: reallyBigInt)!
401
405
let mirror = ptr.customMirror
402
406
expectEqual(1, mirror.children.count)
403
- #if arch(i386) || arch(arm)
407
+ #if arch(i386) || arch(arm) || arch(wasm32)
404
408
expectEqual("18446744071562067968", String(describing: mirror.children.first!.1))
405
409
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
406
410
expectEqual("9223372036854775808", String(describing: mirror.children.first!.1))
@@ -415,7 +419,7 @@ ${SelfName}TestSuite.test("customPlaygroundQuickLook") {
415
419
let reallyBigInt: UInt = UInt(Int.max) + 1
416
420
let ptr = ${SelfType}(bitPattern: reallyBigInt)!
417
421
if case let .text(desc) = ptr.customPlaygroundQuickLook {
418
- #if arch(i386) || arch(arm)
422
+ #if arch(i386) || arch(arm) || arch(wasm32)
419
423
expectEqual("${SelfName}(0xFFFFFFFF80000000)", desc)
420
424
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
421
425
expectEqual("${SelfName}(0x8000000000000000)", desc)
0 commit comments