mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Most tests were using %swift or similar substitutions, which did not include the target triple and SDK. The driver was defaulting to the host OS. Thus, we could not run the tests when the standard library was not built for OS X. Swift SVN r24504
13 lines
416 B
Swift
13 lines
416 B
Swift
// RUN: %target-parse-verify-swift -solver-memory-threshold 5000
|
|
|
|
var x = [1, 2, 3, 4.5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 ,19] // expected-error{{expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions}}
|
|
|
|
// No errors should appear below as a result of the error above.
|
|
var y = 10
|
|
var z = 10 + 10
|
|
|
|
class C {}
|
|
|
|
var c = C()
|
|
var d = c
|