Commit Graph

20 Commits

Author SHA1 Message Date
Max Moiseev
40b1a0b7e0 [stdlib] all sorts of require renamed back to precondition 2016-02-19 18:21:29 -08:00
Max Moiseev
3fe0c60d7f Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2015-12-17 11:00:02 -08:00
Maxim Moiseev
f2f50d6a9d precondition => require 2015-12-16 17:16:08 -08:00
Dmitri Gribenko
d864cfcf3d Merge pull request #556 from dduan/increment_decrement_search_replace
replace singular statement ++/-- with += 1/-= 1 for integer variables
2015-12-15 17:39:29 -08:00
Erik Eckstein
0830c36974 [tests] add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
This is the second part of 308f39fe56.
It fixes (better: works-around) linker errors when testing in optimized mode.
2015-12-15 10:46:10 -08:00
Daniel Duan
ebb0c3a204 replaced single-line ++/-- with +=/-= 2015-12-15 09:05:37 -08:00
Slava Pestov
f524802e12 DI: Add support for early return from designated initializers
Fixes <rdar://problem/18216578>.

Swift SVN r32678
2015-10-14 06:36:56 +00:00
Doug Gregor
8e131c96e7 Add a simple runtime test for forcing a self.init of a failable initializer
Swift SVN r30275
2015-07-16 22:21:54 +00:00
Arnold Schwaighofer
859fbc0162 More executable_test for the test directory
Swift SVN r29280
2015-06-03 23:28:51 +00:00
Doug Gregor
3926c349b2 Eliminate uses of ‘#’ from the testsuite.
Swift SVN r28842
2015-05-20 20:21:42 +00:00
Arnold Schwaighofer
af5a49f4e4 Fix test case to work in optimized mode
Swift SVN r28683
2015-05-17 16:55:51 +00:00
Dmitri Hrybenko
f46f16ae82 stdlib: implement new print() API
rdar://20775683

Swift SVN r28309
2015-05-08 01:37:59 +00:00
Chris Lattner
31c01eab73 Change the meaning of "if let x = foo()" back to Xcode 6.4 semantics. The compiler
includes a number of QoI things to help people write the correct code.  I will commit
the testcase for it as the next patch.

The bulk of this patch is moving the stdlib, testsuite and validation testsuite to
the new syntax.  I moved a few uses of "as" patterns back to as? expressions in the 
stdlib as well.



Swift SVN r27959
2015-04-30 04:38:13 +00:00
Chris Lattner
86f5396637 update testcase to modern syntax.
Swift SVN r27470
2015-04-19 23:03:20 +00:00
Doug Gregor
78a28c01eb Materialize temporaries properly when translating between init? and init! in witnesses.
Thanks, Joe!


Swift SVN r21854
2014-09-10 22:51:02 +00:00
Joe Groff
577eee10f3 Execution tests for generics that call failable initializers.
Swift SVN r21685
2014-09-03 22:07:37 +00:00
Joe Groff
02fa026596 Execution tests for class failable initializers.
Swift SVN r21684
2014-09-03 21:51:24 +00:00
Joe Groff
5a1e41f15a Execution tests for delegating and always-failing value initializers.
Verify that Chris's DI improvements work with delegating value initializers.

Swift SVN r21538
2014-08-28 20:15:44 +00:00
Joe Groff
46be672d4f Execution tests for cleanup of partial value initializer failures.
We get this for free from DI's support for struct/tuple destruction. Put it through its paces to make sure it works in failable value initializers.

Swift SVN r21460
2014-08-26 18:33:19 +00:00
Joe Groff
de2a02bb1e Simple execution test for failable value initializers.
Swift SVN r21451
2014-08-26 00:49:35 +00:00