mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
tests: fix tests not to overflow an Int on 32-bit platforms
Swift SVN r24786
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
|
||||
|
||||
protocol AProtocol {
|
||||
func print()
|
||||
func print()
|
||||
}
|
||||
|
||||
class AClass : AProtocol {
|
||||
var x : Int
|
||||
init() { x = 0xDEADBEEF }
|
||||
func print() { println("x = \(x)")}
|
||||
var x: UInt32
|
||||
init() { x = 0xDEADBEEF }
|
||||
func print() { println("x = \(x)")}
|
||||
}
|
||||
// CHECK: define hidden void @_TF17ProtocolContainer3foo
|
||||
// CHECK-NEXT: entry:
|
||||
|
||||
Reference in New Issue
Block a user