Commit Graph

7628 Commits

Author SHA1 Message Date
Robert Widmann
e5dd189aaf Include crashing test case 2015-12-06 01:50:53 -05:00
Dmitri Gribenko
4b8fff424b Merge pull request #270 from hamin/cleaning-up-cstyle-loops
A small step towards removing C-style loops
2015-12-05 22:47:26 -08:00
Haris Amin
0d001480a9 A small step towards removing C-style loops 2015-12-06 01:07:24 -05:00
Joe Groff
a42ce379ee Merge pull request #218 from Inari-Whitebear/master
Change language in test case to more accurately describe peer relationship of threads
2015-12-05 20:15:22 -08:00
Inari
199ac1585d Fix potentially inconsiderate/inaccurate naming 2015-12-05 18:31:53 +01:00
Jordan Rose
90c5cfea4d [test] Add a Linux test for indirect link dependencies relying on -L.
This is the Linux equivalent of 3731a2ff0. There's probably a way to
merge them into one file cleanly, but the extra linker args on OS X
make it a little tricky. I'm deciding not to worry about it right now.
2015-12-04 17:58:27 -07:00
Inari
0e8a37bdee Properly fix potentially inconsiderate naming 2015-12-05 01:01:53 +01:00
Chris Willmore
821a5a6462 Merge pull request #163 from jtbandes/master
Fix crash when considering invalid binary operator function for resolution.

<rdar://23719809&23720006>
2015-12-04 15:29:12 -08:00
Jacob Bandes-Storch
56e13fccfd Fix crash when considering invalid binary operator function for resolution <rdar://23719809&23720006>
This fixes compiler crashes resulting from an invalid FuncDecl which is later considered while resolving a binary application.
2015-12-04 14:43:12 -08:00
Erik Eckstein
0b8025430f stdlib tests: Fix linker error on linux 2015-12-04 12:58:38 -08:00
Jordan Rose
4f9367041f [Driver] Always use the runtime resource library path for DYLD_LIBRARY_PATH.
...when interpreting. Otherwise, the script may depend on library X, which
depends on library Y, where library Y is a standard Swift library, located
in lib/swift/$PLATFORM/.

Finishes rdar://problem/23588774
2015-12-04 12:18:48 -08:00
Jordan Rose
3731a2ff0c [test] Add a test for indirect link dependencies relying on -L.
...as described in rdar://problem/23588774. We don't really have a good way
to make this test cross-platform as such, but I'll add a Linux version soon.
2015-12-04 12:18:47 -08:00
Joe Groff
f97b46170f Typo 2015-12-04 10:42:41 -08:00
pcbro
8bda440bb9 Fix inconsiderate naming 2015-12-04 10:01:57 +00:00
Ted Kremenek
fba073f39c Merge pull request #109 from rogergzou/rev3
whitespace
2015-12-03 14:48:50 -08:00
Roger Z
741a31bf57 whitespace 2015-12-03 16:41:15 -05:00
James McLaughlin
9da5899652 Consistently use env(1) to resolve bash and python paths 2015-12-03 20:55:27 +00:00
Dmitri Gribenko
174d475833 stdlib: Remove unavavailable APIs that were left as migration aids
These APIs are from the Swift 1.2 => Swift 2.0 transition, and are not
relevant anymore.

Removing them reduces the surface area of the library that needs to be
reviewed.
2015-12-02 01:19:50 -08:00
Dmitri Gribenko
4f8773f40e Add a test feature 'swift_ast_verifier' 2015-11-30 21:07:13 -07:00
Erik Eckstein
461cf5359b tests: Improve comment for StdlibUnittest-import workaround. 2015-11-30 13:11:00 -08:00
Erik Eckstein
308f39fe56 stdlib tests: add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
rdar://problem/18917405
2015-11-19 15:18:18 -08:00
Michael Gottesman
45308f68b1 Try apply insts can also have guaranteed parameters.
This was a piece of code that was not updated with FullApplySite when try_apply
was added.

rdar://23505191
2015-11-19 08:33:56 -08:00
Chris Lattner
b219c9b9ee Update validation test to reflect diagnostic changes. Have I ever mentioned
that it doesn't make sense for validation tests to be checking diagnostics?
2015-11-17 21:34:15 -08:00
Joe Groff
fbd2e4d872 Rename @asmname to @_silgen_name.
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
2015-11-17 14:13:48 -08:00
Ben Langmuir
50cc79c7f2 Fix crash code-completing after 1 + [0]
A literal in a sub-expression of the right-most expression in a sequence
could accidentally still have an error-type when going through CSApply.

rdar://problem/23488528
2015-11-16 11:35:13 -08:00
Xin Tong
6b1328d059 Reapply XFAIL OpenCLSDKOverlay.swift to appease the bots for now. Bug tracked in rdar//23505191 2015-11-14 06:43:42 -08:00
Xin Tong
670c105a9e Revert "Reapply XFAIL OpenCLSDKOverlay.swift to appease the bots for now. Bug tracked in rdar//23505191"
This reverts commit 8c55907efd.

Committed some of my local changes.
2015-11-14 06:42:23 -08:00
Xin Tong
8c55907efd Reapply XFAIL OpenCLSDKOverlay.swift to appease the bots for now. Bug tracked in rdar//23505191 2015-11-14 06:35:55 -08:00
Jordan Rose
bdc42e71d9 Revert several commits working around the autolinking breakage.
Swift was failing to autolink frameworks in the new text-based SDKs.
Clang r253060 fixes the underlying issue, so we can go back to relying
on autolinking for these.

This reverts the following commits (newest to oldest):
f658841
59092a3
7ea9d54
e52ef22

rdar://problem/23511008
2015-11-13 20:21:04 -08:00
Ted Kremenek
216e6d238f Remove tests for SwiftPrivateSerialization (which was removed). 2015-11-13 15:21:07 -08:00
Michael Gottesman
f658841a5f Just disable the GameplayKit test and do not link against GameplayKit everywhere.
Looks like there is a discrepency in between the public/private SDK with the
safety of just including GameplayKit everywhere.

rdar://23527707
2015-11-12 17:23:34 -08:00
Michael Gottesman
59092a3fa3 Disable a test until rdar23505191 is fixed. 2015-11-12 17:03:00 -08:00
Ben Langmuir
7649d3202d [CodeCompletion] Add test for a fixed crasher assigning to AnyObject
rdar://problem/23379556
2015-11-12 13:09:44 -08:00
Chris Willmore
48987d6a20 Update validation test suite after fixing 21967211.
Commit da15fbf fixed 32 compiler crashers.
2015-11-10 23:09:54 -08:00
David Farler
8f2fbdc93a Make function parameters and refutable patterns always immutable
All refutable patterns and function parameters marked with 'var'
is now an error.

- Using explicit 'let' keyword on function parameters causes a warning.
- Don't suggest making function parameters mutable
- Remove uses in the standard library
- Update tests

rdar://problem/23378003
2015-11-09 16:56:13 -08:00
Ted Kremenek
fe93ae2879 Revert "Disable SwiftPrivateSerializationMsgPack.swift to appease the bots for now."
This reverts commit 34ac867eb7.
2015-11-08 09:28:54 -08:00
Xin Tong
34ac867eb7 Disable SwiftPrivateSerializationMsgPack.swift to appease the bots for now.
Issue tracked in rdar://23456019. Will enable once problem fixed.
2015-11-08 09:11:39 -08:00
Erik Eckstein
6cca63cc67 Prevent dead code elimination in fixed point arithmetic trap test.
This is needed after commit [2504257] DeadCodeElimination: remove dead overflow producing operations together with the cond_fail which handles the overflow.
2015-11-04 15:01:11 -08:00
spestov@apple.com
5d88b04e67 Forgot to update some tests for Linux reference counting changes 2015-11-03 15:25:52 -07:00
Ben Langmuir
d119d6e3b0 [CodeCompletion] Update validation-test/IDE after keyword changes 2015-11-02 14:35:09 -08:00
David Farler
4ac9c80809 Add back remaining files for building and testing in Open Source 2015-10-31 00:19:20 -07:00
David Farler
a759ca9141 Disallow 'var' bindings in case patterns
Make the following illegal:

switch thing {
  case .A(var x):
    modify(x0
}

And provide a replacement 'var' -> 'let' fix-it.

rdar://problem/23172698

Swift SVN r32883
2015-10-25 18:53:02 +00:00
Dmitri Hrybenko
9383927356 stdlib: trap correctly in floating-point to unsigned integer conversion
Uncovered by Dave's fixes to gyb.

<rdar://problem/23247773>

Swift SVN r32879
2015-10-25 04:53:37 +00:00
Arnold Schwaighofer
4b424e9b5a XFAIL test to get the bots blue
This started failing after recent gyb changes.

rdar://23247773

Swift SVN r32871
2015-10-24 12:02:49 +00:00
Xin Tong
eadac91a6b Fix a bug in how DSE tracks alive components in partial dead stores. rdar://23218844
Also enable test case disabled to appease the bots.

Swift SVN r32842
2015-10-23 04:34:47 +00:00
Arnold Schwaighofer
9147eab1a7 XFAIL test case that is currently failing when run with optimization
rdar://23218844

Swift SVN r32826
2015-10-22 16:03:47 +00:00
Ben Langmuir
465c2db70e [CodeCompletion] Add a test for some previously crashing extensions
This got incidentally fixed recently, but wasn't yet tested.

rdar://problem/21825270

Swift SVN r32792
2015-10-21 17:58:25 +00:00
Slava Pestov
1b5778ba68 UNSUPPORTED rather than XFAIL
As Jordan pointed out, the frameworks exist in the internal SDK, and
we don't want the tests to fail in this case.

Swift SVN r32734
2015-10-16 22:22:01 +00:00
Slava Pestov
6e5475bbb7 Fixing watchOS simulator test failures
Some of the tests had bitrotted, and others no longer worked
because they used frameworks such as CoreAudio that are not
available in the public SDK for watchOS.

Swift SVN r32733
2015-10-16 22:15:34 +00:00
Doug Gregor
ea3d0b37bf Archetype builder: clean up typo correction and unresolved references.
When typo-correcting a potential archetype (i.e., a nested name
T.foo), record the rename within the potential archetype but don't
consider the signature to be invalid. Move the actual typo-correction
diagnostics and AST fix-ups outside of the archetype builder, so we
get proper Fix-Its and a correct generic signature. Fixes
rdar://problem/20789924.

Swift SVN r32677
2015-10-14 06:27:28 +00:00