Commit Graph

14 Commits

Author SHA1 Message Date
Graham Batty
83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00
Graham Batty
83f27a8af7 Revert "Mark tests that don't pass on linux as XFAIL."
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.

Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe Mark tests that don't pass on linux as XFAIL.
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Joe Pamer
94dac129d4 Remove the BooleanType conformance from optional types (rdar://problem/17110911)
To limit user confusion when using conditional expressions of type Bool?, we've decided to remove the BooleanType (aka "LogicValue") conformance from optional types. (If users would like to use an expression of type Bool? as a conditional, they'll need to check against nil.)

Note: This change effectively regresses the "case is" pattern over types, since it currently demands a BooleanType conformance. I've filed rdar://problem/17791533 to track reinstating it if necessary.

Swift SVN r20637
2014-07-28 19:20:39 +00:00
Doug Gregor
5fc8ac7fd1 Require the 'override' keyword for initializers that override designated initializers.
Swift SVN r20490
2014-07-24 15:38:33 +00:00
Joe Groff
4ce7d0f3ad Enable optional lvalues.
This causes a regression in error reporting where there are potential fixes: <rdar://problem/17741575> Other than that, everything works.

Swift SVN r20230
2014-07-20 18:16:42 +00:00
Doug Gregor
a5c079af59 Replace the class_protocol attribute with a "class" requirement.
This only tackles the protocol case (<rdar://problem/17510790>); it
does not yet generalize to an arbitrary "class" requirement on either
existentials or generics.

Swift SVN r19896
2014-07-13 06:57:48 +00:00
Dave Zarzycki
c86efe5e70 Tests: Enable weak reference testing
Swift SVN r18427
2014-05-19 20:28:48 +00:00
Chris Lattner
a3b406a4c4 previous patches fixed: <rdar://problem/16949978> weak implicitly unwrapped optional compiled as optional, not implicitly unwrapped
add a testcase.



Swift SVN r18317
2014-05-18 05:08:08 +00:00
Chris Lattner
e114121963 r18312 fixed <rdar://problem/15293354> Weak reference to class protocol crashes with "SIL verification failed: isa operand must be a class type"
Add the testcase.



Swift SVN r18316
2014-05-18 05:04:32 +00:00
Chris Lattner
052a564351 enable weak protocol test, which was fixed by r18312
Swift SVN r18313
2014-05-18 04:54:21 +00:00
Chris Lattner
72461d86c4 expand this test a bit. Zeroing weak pointers are still apparently non-functional, and
they crash in silgen for trivial weak protocols.


Swift SVN r18310
2014-05-18 04:33:35 +00:00
Chris Lattner
4352c71ded no need for the nested if, flatten it.
Swift SVN r18308
2014-05-18 04:22:04 +00:00
Chris Lattner
ae49b8bee2 add an executable test for weak pointers. It is somewhat concerning to me that
without the "w = nil" line that explicitly nil's out the weak pointer, that it fails.
I'm not sure what is going on here, but it looks like weak pointers are just broken.



Swift SVN r18307
2014-05-18 04:21:21 +00:00