Commit Graph

3245 Commits

Author SHA1 Message Date
Drew Maxwell
7825221cd4 Updating Swift tests to remove outdated tests and use more current calls. 2022-09-16 15:11:10 -07:00
nate-chandler
9a7c0b9869 Revert "[Freestanding] Disable checked continuations." 2022-09-14 17:29:49 -07:00
Mike Ash
7f6c565c07 [Test] Add new symbol to symbol-visibility-linux.test-sh.
Add `_ZNSt6vectorISsSaISsEE17_M_realloc_insertIJSsEEEvN9__gnu_cxx17__normal_iteratorIPSsS1_EEDpOT_`, which is a slight variation on one of the existing ignored symbols for std::vector::_M_realloc_insert.

rdar://99888061
2022-09-14 14:04:16 -04:00
Ben Pious
57d82317c1 Add CustomDebugDescription conformance to AnyKeyPath (#60133)
* initial

* it works

demangling mostly works

fix dots

printing works

add tests

add conformance to AnyKeyPath

implement SPI

subscripts fully work

comments

use cross platform image inspection

remove unnecessary comment

fix

fix issues

add conditional conformance

add types

try to fix the api-digester test

cr feedback: move impls behind flag, remove addChain(), switch statement, fallthrough instead of if-elses, move import

cr feedback: refactor switch statement

fix #ifdef

reindent, cr feedback: removes manual memory management

fix missing whitespace

fix typo

fix indentation issues

switch to regexes

checks should test in on all platforms

print types in subscripts

add test for empty subscript

Update test/api-digester/stability-stdlib-abi-without-asserts.test

Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>

add commas

fix failing test

fix stdlib annotation

cr feedback: remove global, refactor ifdef

cr feedback: switch back to manual memory management

switch to 5.8 macro

add new weakly linked functions to the allowlist

fix one more failing test

more cr feedback

more cr feedback

* fix invisible unicode
2022-09-13 09:23:32 -07:00
Alejandro Alonso
bff02ddfbd Disable a test in StringIndex
update

add code
2022-09-08 09:18:18 -07:00
Alastair Houghton
729b75755a [Tests][Runtime] Update availability test for demangleTruncate.
The fix for this issue didn't ship in 10.15, so testing it there just
causes a build failure.

rdar://87181765
2022-09-06 12:43:11 +01:00
nate-chandler
1f38c4bb3b Merge pull request #60790 from nate-chandler/rdar99047747
[Freestanding] Disable checked continuations.
2022-08-31 07:39:21 -07:00
Nate Chandler
c20bd86007 [Freestanding] Disable checked continuations.
In the task-to-thread model, there are no threading mechanisms by which
work could be offloaded onto another thread.  As such, callback based
asynchronous APIs which are not Swift async do not make sense.

rdar://99047747
2022-08-25 16:55:45 -07:00
Alejandro Alonso
284f8d4fdd Fix Substring.removeSubrange for entire substring (#60744)
fix start and end

fix test
2022-08-25 16:08:33 -07:00
Guillaume Lessard
1bba62ec13 Merge pull request #60613 from glessard/pointer-arithmetic-overflow-checks
[stdlib] add overflow checks for some pointer arithmetic
2022-08-25 14:37:44 -06:00
Guillaume Lessard
3fcf2a2046 [test] pointer arithmetic overflow checks 2022-08-23 14:27:42 -06:00
Holly Borla
8713d78704 [PrintOptions] Print explicit 'any' in SIL. 2022-08-18 01:15:12 -04:00
David Smith
50c79f9b3c Fix tests on older/32 bit platforms (#60538)
(cherry picked from commit 503a17cc7e31ef7c3463c1d6a54c67297a150064)
2022-08-15 21:16:24 -07:00
swift-ci
d0700b3f2a Merge remote-tracking branch 'origin/main' into rebranch 2022-08-10 16:34:37 -07:00
Michael Gottesman
471142c838 Merge pull request #60493 from gottesmm/pr-5090c953a85817f4f92399698c8d97134ff8cae4
[move-keyword] Put the move keyword behind the experimental move only flag for now.
2022-08-10 16:20:06 -07:00
Michael Gottesman
f3081d0e9a [move-keyword] Put the move keyword behind the experimental move only flag for now.
Originally move when it was in the stdlib as _move was behind a keyword but we
moved it in front to allow for some testing. Now that we are going with a
keyword (which we can't leave in/deprecate) move it behind the move only
experimental flag until this gets through evolution.
2022-08-10 12:45:17 -07:00
swift-ci
85f48aeb15 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-09 18:53:20 -07:00
swift-ci
7701ddc054 Merge pull request #60428 from Catfish-Man/tag-youre-it
Handle long tagged NSStrings
2022-08-09 18:47:39 -07:00
David Smith
27a27fe034 Fix test 2022-08-09 14:35:10 -07:00
David Smith
ad00633cf1 Fix assert 2022-08-09 14:12:20 -07:00
David Smith
f966017c9c Review feedback 2022-08-08 17:27:23 -07:00
swift-ci
0409774802 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-08 16:56:17 -07:00
David Smith
b3d8875834 Iterate on the long tagged string test 2022-08-08 16:23:54 -07:00
Michael Gottesman
6493886e1d [move-keyword] Wire up support for the move keyword in lvalue/rvalue emission.
I also updated the move function tests to show that this is working. As a nice
bonus, I was able to enable all of the tests also in a non-optimized stdlib.
2022-08-08 12:50:42 -07:00
David Smith
e0dd80fe3b Handle long tagged NSStrings 2022-08-05 19:02:37 -07:00
swift-ci
3da724cee2 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-01 13:34:53 -07:00
Duo Wang
72e0ac2819 [tests] fix missing codesign in test files 2022-07-28 13:59:44 -07:00
swift-ci
3562f25346 Merge remote-tracking branch 'origin/main' into rebranch 2022-07-14 13:34:16 -07:00
Guillaume Lessard
480361b360 [test] move test to a file requiring the full stdlib
- SIMD types are not available in the minimal stdlib
2022-07-14 13:52:21 -06:00
swift-ci
d919357e5f Merge remote-tracking branch 'origin/main' into rebranch 2022-07-13 16:13:25 -07:00
Guillaume Lessard
bee4eaefc4 Merge pull request #60025 from glessard/rdar96841899
[stdlib] fix unaligned loads of large SIMD vectors on x86_64
2022-07-13 17:04:32 -06:00
Guillaume Lessard
9d1ca61bec Update test/stdlib/UnsafeRawPointer.swift 2022-07-13 11:29:44 -06:00
Guillaume Lessard
8bb22f88fc [test] unaligned loads of large, generic SIMD types 2022-07-12 14:50:48 -06:00
swift-ci
a3f161112b Merge remote-tracking branch 'origin/main' into rebranch 2022-07-12 05:14:46 -07:00
Anthony Latsis
d74384cfcf Merge pull request #59931 from AnthonyLatsis/close-issues-3
Add regression tests to close several issues p. 3
2022-07-12 15:11:52 +03:00
swift-ci
7382a9c41e Merge remote-tracking branch 'origin/main' into rebranch 2022-07-11 07:53:46 -07:00
nate-chandler
aff4e799d9 Merge pull request #59726 from nate-chandler/freestanding/task-to-thread-model
[Freestanding] Disable unstructured tasks.
2022-07-11 07:40:31 -07:00
Nate Chandler
34c08b8344 [TaskToThread] Add Task.runInline.
The new intrinsic, exposed via static functions on Task<T, Never> and
Task<T, Error> (rethrowing), begins an asynchronous context within a
synchronous caller's context.  This is only available for use under the
task-to-thread concurrency model, and even then only under SPI.
2022-07-08 08:44:18 -07:00
Nate Chandler
68eea8adec [TaskToThread] No unstructured tasks.
In this mode, the following are disabled:

- task creation
- global actors
- MainActor
- custom executors
2022-07-06 11:51:16 -07:00
swift-ci
33cce02ddb Merge remote-tracking branch 'origin/main' into rebranch 2022-07-06 11:14:12 -07:00
Nate Chandler
3439ce77da [Test] Disable stdlib/Mirror.swift for back deploy.
rdar://96520492
2022-07-06 09:12:52 -07:00
Anthony Latsis
3615aa1106 Add regression test to close #43154 2022-07-05 19:29:07 +03:00
swift-ci
aa5f56d983 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-28 16:53:21 -07:00
Anthony Latsis
087eba83a2 Merge pull request #59757 from AnthonyLatsis/close-issues-2
Add regression tests to close several issues p. 2
2022-06-29 02:48:54 +03:00
Anthony Latsis
f9b76b88f9 Add regression test to resolve #43068 2022-06-28 22:36:14 +03:00
Anthony Latsis
2a84083714 Add regression test to close #43211 2022-06-28 22:36:14 +03:00
Anthony Latsis
e487acf43b Enable additional checks in test/stdlib/Mirror.swift that used to not compile 2022-06-28 22:36:14 +03:00
Anthony Latsis
7732306fa9 Add regression test to close #43135 2022-06-25 00:48:02 +03:00
swift-ci
b8f39b56be Merge remote-tracking branch 'origin/main' into rebranch 2022-06-22 09:15:09 -07:00
Alejandro Alonso
95da55b182 [stdlib] Implement String.WordView (#42414)
* Implement String.WordView

* Add isWordAligned bit

* Hide WordView for now (also separate Index type)

add bidirectional conformance

Fix tests

* Address comments from Karoy and Michael

* Remove word view, use index methods

* Address Karoy's comments

aaa
2022-06-22 09:10:09 -07:00