File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -394,14 +394,23 @@ UnsafeMutablePointerTestSuite.test("customPlaygroundQuickLook") {
394
394
% ('UnsafeMutablePointer', 'UnsafeMutablePointer<Int>')]:
395
395
396
396
${SelfName}TestSuite.test("Comparable") {
397
- let instances = [
397
+ var addresses: [UInt] = [
398
398
0x00000001,
399
399
0xFF00FF00,
400
400
0x00001111,
401
401
0x00000002,
402
402
0xFFFFFFFF,
403
403
0x00001111
404
- ].map { ($0, ${SelfType}(bitPattern: $0)!) }
404
+ ]
405
+
406
+ #if arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le)
407
+ addresses += [
408
+ 0xFFFFFFFF80000000,
409
+ 0x8000000000000000
410
+ ]
411
+ #endif
412
+
413
+ let instances = addresses.map { ($0, ${SelfType}(bitPattern: $0)!) }
405
414
406
415
func comparisonOracle(i: Int, j: Int) -> ExpectedComparisonResult {
407
416
return instances[i].0 <=> instances[j].0
You can’t perform that action at this time.
0 commit comments