|
1 | 1 | // RUN: %empty-directory(%t)
|
2 | 2 | //
|
3 |
| -// RUN: %target-build-swift %s -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/main |
| 3 | +// RUN: %target-build-swift %s -o %t/main |
4 | 4 | // RUN: %target-codesign %t/main
|
5 | 5 | // RUN: %target-run %t/main | %FileCheck %s
|
6 | 6 |
|
7 | 7 | // RUN: %empty-directory(%t)
|
8 | 8 | //
|
9 | 9 | // RUN: sed -e 's/required//g' < %s > %t/without_required.swift
|
10 |
| -// RUN: %target-build-swift %t/without_required.swift -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/without_required |
| 10 | +// RUN: %target-build-swift %t/without_required.swift -o %t/without_required |
11 | 11 | // RUN: %target-codesign %t/without_required
|
12 | 12 | // RUN: %target-run %t/without_required | %FileCheck %s
|
13 | 13 |
|
14 | 14 | // RUN: %empty-directory(%t)
|
15 | 15 | //
|
16 |
| -// RUN: %target-build-swift %s -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/main -swift-version 5 |
| 16 | +// RUN: %target-build-swift %s -o %t/main -swift-version 5 |
17 | 17 | // RUN: %target-codesign %t/main
|
18 | 18 | // RUN: %target-run %t/main | %FileCheck %s
|
19 | 19 |
|
20 | 20 | // RUN: %empty-directory(%t)
|
21 | 21 | //
|
22 | 22 | // RUN: sed -e 's/required//g' < %s > %t/without_required.swift
|
23 |
| -// RUN: %target-build-swift %t/without_required.swift -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/without_required -swift-version 5 |
| 23 | +// RUN: %target-build-swift %t/without_required.swift -o %t/without_required -swift-version 5 |
24 | 24 | // RUN: %target-codesign %t/without_required
|
25 | 25 | // RUN: %target-run %t/without_required | %FileCheck %s
|
26 | 26 |
|
27 | 27 | // REQUIRES: executable_test
|
28 | 28 | // REQUIRES: objc_interop
|
| 29 | +// REQUIRES: foundation |
29 | 30 | // XFAIL: CPU=arm64e
|
30 | 31 |
|
| 32 | +// Because of the use of 'sed' in this test. |
| 33 | +// REQUIRES: shell |
| 34 | + |
| 35 | +// rdar://133393259 fails in optimized tests. |
| 36 | +// UNSUPPORTED: swift_test_mode_optimize |
| 37 | +// UNSUPPORTED: swift_test_mode_optimize_size |
| 38 | + |
31 | 39 | import Darwin
|
| 40 | +import Foundation |
32 | 41 |
|
33 | 42 | class Base {
|
34 | 43 | init(swift: ()) {
|
|
0 commit comments