Commit Graph

21 Commits

Author SHA1 Message Date
Michael Gottesman
d4e09b0944 [silgen] Add an extra swift-version 5 run to initializer tests.
We currently run these in swift-version 4 by default. This caused us to miss
some bugs that only occur in swift-version 5 due to initializer changes
happening in swift 5. This at least will allow us to catch such issues in the
future.

NOTE: I am also going to change objc_throwing_initializers.swift in the same
way, but after I fix the bugs that adding -swift-version 5 exposes therein
(which is actually <rdar://problem/59830255>)
2020-05-19 11:47:08 -07:00
Slava Pestov
09b59c5336 DI: More tests 2017-10-20 16:10:32 -07:00
Slava Pestov
49c54870c1 Serialization: Auto-linking recursively walks modules imported from -sil-serialize-all modules 2016-04-01 12:21:36 -07:00
Slava Pestov
1f249f2c2d Update some tests to use LifetimeTracked instead of hand-rolled canaries 2016-03-21 11:48:23 -07: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