Skip to content

Commit 3edb923

Browse files
committed
---
yaml --- r: 344799 b: refs/heads/master c: 00ac943 h: refs/heads/master i: 344797: a01e0f4 344795: d41c6ac 344791: b7be1e4 344783: e792d4e 344767: 70aa4f4
1 parent efd4e07 commit 3edb923

File tree

226 files changed

+396
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+396
-118
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6cde2572e02b5e8bced1c4120b44ef665cacdc4e
2+
refs/heads/master: 00ac943ed0d94c7461030d6c9e42591f574b45e0
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/TBDGen/TBDGen.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ void TBDGenVisitor::addConformances(DeclContext *DC) {
137137
}
138138

139139
void TBDGenVisitor::visitAbstractFunctionDecl(AbstractFunctionDecl *AFD) {
140+
// A @_silgen_name("...") function without a body only exists
141+
// to forward-declare a symbol from another library.
142+
if (!AFD->hasBody() && AFD->getAttrs().hasAttribute<SILGenNameAttr>()) {
143+
return;
144+
}
145+
140146
addSymbol(SILDeclRef(AFD));
141147

142148
if (AFD->getAttrs().hasAttribute<CDeclAttr>()) {

trunk/test/DebuggerTestingTransform/basic-assignments.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// REQUIRES: executable_test
44
// RUN: %target-build-swift -Xfrontend -debugger-testing-transform %s -o %t
5+
// RUN: %target-codesign %t
56
// RUN: %target-run %t | %FileCheck %s -check-prefix=CHECK-E2E
67
// RUN: rm -rf %t
78

trunk/test/Driver/batch_mode_with_supplementary_filelist_execution.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
// Also use some characters outside the BMP.
88
//
99
// RUN: %target-build-swift -emit-dependencies -serialize-diagnostics -driver-filelist-threshold=0 -j2 %t/main.swift %t/𝔼-file-01.swift %t/😂-file-02.swift %t/Ω-file-03.swift -o %t/a.out
10+
// RUN: %target-codesign %t/a.out
1011
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-HELLO-WORLD
1112
// CHECK-HELLO-WORLD: Hello, World!

trunk/test/Driver/emit-sib-single-file.swift

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
// RUN: %target-build-swift -Onone -emit-sib %s -o %t.sib
22
// RUN: %target-build-swift %t.sib -o %t
3+
// RUN: %target-codesign %t
34
// RUN: %target-run %t | %FileCheck %s
45

56
// RUN: %target-build-swift -Onone -c %t.sib -o %t.o
6-
// RUN: %target-build-swift %t.o -o %t
7-
// RUN: %target-run %t | %FileCheck %s
7+
// RUN: %target-build-swift %t.o -o %t-2
8+
// RUN: %target-codesign %t-2
9+
// RUN: %target-run %t-2 | %FileCheck %s
810

911
// RUN: %target-build-swift -Onone -emit-sibgen %s -o %t.sib
10-
// RUN: %target-build-swift %t.sib -o %t
11-
// RUN: %target-run %t | %FileCheck %s
12+
// RUN: %target-build-swift %t.sib -o %t-3
13+
// RUN: %target-codesign %t-3
14+
// RUN: %target-run %t-3 | %FileCheck %s
1215

1316
// RUN: %target-build-swift -Onone -c %t.sib -o %t.o
14-
// RUN: %target-build-swift %t.o -o %t
15-
// RUN: %target-run %t | %FileCheck %s
17+
// RUN: %target-build-swift %t.o -o %t-4
18+
// RUN: %target-codesign %t-4
19+
// RUN: %target-run %t-4 | %FileCheck %s
1620
// REQUIRES: executable_test
1721

1822
// CHECK: Hello World

trunk/test/Driver/emit-sil-single-file.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// RUN: %target-build-swift -Onone -emit-silgen %s -o %t.sil
22
// RUN: %target-build-swift -parse-sil %t.sil -o %t
3+
// RUN: %target-codesign %t
34
// RUN: %target-run %t | %FileCheck %s
45

56
// RUN: %target-build-swift -Onone -c %t.sil -o %t.o
6-
// RUN: %target-build-swift %t.o -o %t
7-
// RUN: %target-run %t | %FileCheck %s
7+
// RUN: %target-build-swift %t.o -o %t-2
8+
// RUN: %target-codesign %t-2
9+
// RUN: %target-run %t-2 | %FileCheck %s
810
// REQUIRES: executable_test
911

1012
// CHECK: Hello World

trunk/test/Driver/sdk-link.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %empty-directory(%t/tmp)
22
// RUN: env TMPDIR=%t/tmp/ %target-build-swift -emit-module -o %t/test.swiftmodule %s
33
// RUN: env TMPDIR=%t/tmp/ %target-build-swift -g -v -o %t/sdk-link %s
4+
// RUN: %target-codesign %t/sdk-link
45
// RUN: %target-run %t/sdk-link | %FileCheck %s
56
// REQUIRES: executable_test
67

trunk/test/Frontend/sil-primary-file-with-sib.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// RUN: %llvm-link %t/test-orig.ll -override %t/test-func.ll -o %t/test.bc
77
// RUN: %target-swift-frontend -c %t/test.bc -o %t/test.o
88
// RUN: %target-build-swift %t/test.o -o %t/test
9+
// RUN: %target-codesign %t/test
910
// RUN: %target-run %t/test | %FileCheck %s
1011
// REQUIRES: executable_test
1112

trunk/test/IRGen/meta_meta_type.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -primary-file %s -emit-ir | %FileCheck -check-prefix=CHECKIR %s
56
// REQUIRES: executable_test

trunk/test/IRGen/multithread_module.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -c %S/Inputs/multithread_module/main.swift -o %t/main.o %s -o %t/mt_module.o -num-threads 2 -O -g -module-name test
88
// RUN: %target-build-swift %t/main.o %t/mt_module.o -o %t/a.out
9+
// RUN: %target-codesign %t/a.out
910
// RUN: %target-run %t/a.out | %FileCheck %s
1011
// REQUIRES: executable_test
1112

trunk/test/IRGen/object_type.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -O %s -o %t/a.out
33
// RUN: %target-build-swift -O %s -emit-ir | %FileCheck --check-prefix=CHECK-IR %s
4+
// RUN: %target-codesign %t/a.out
45
// RUN: %target-run %t/a.out | %FileCheck %s
56
// REQUIRES: executable_test
67

trunk/test/IRGen/report_dead_method_call.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// The private, unused methods are optimized away. The test calls these
88
// methods anyway (since it has overridden the access control), so we
99
// expect them to produce "Fatal error: Call of deleted method" when run.
10+
// RUN: %target-codesign %t/report_dead_method_call
1011
// RUN: %target-run %t/report_dead_method_call
1112
// REQUIRES: executable_test
1213

trunk/test/IRGen/zero_size_types.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -Xllvm -sil-disable-pass=GenericSpecializer %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/SDK/Foundation_NSLog.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: echo '@import Foundation; void testNSLog() { NSLog(@"working"); }' | %target-clang -fobjc-arc -fmodules -x objective-c - -c -o %t/NSLogIsWorking.o
55

66
// RUN: %target-build-swift %s %t/NSLogIsWorking.o -import-objc-header %t/NSLogIsWorking.h -o %t/main
7+
// RUN: %target-codesign %t/main
78
// RUN: %target-run %t/main 2>%t/output.txt
89
// RUN: %FileCheck %s < %t/output.txt
910

trunk/test/Interpreter/SDK/Foundation_bridge.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -import-objc-header %S/Inputs/Foundation_bridge.h -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/SDK/OS_objects.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// RUN: cp %s %t/main.swift
44
// RUN: %target-build-swift %t/main.swift -I %S/Inputs/custom-modules/ -o %t/OS_objects -Xfrontend -disable-access-control
5+
// RUN: %target-codesign %t/OS_objects
56
// RUN: %target-run %t/OS_objects 2>&1 | %FileCheck %s
67

78
// REQUIRES: objc_interop

trunk/test/Interpreter/SDK/archive_compatibility.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -module-name=test -o %t/a.out -swift-version 3
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out %S/Inputs/test.arc | %FileCheck %s
45

56
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/block_globals.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// RUN: %target-clang -fobjc-arc %S/Inputs/BlockGlobals/BlockGlobals.m -c -o %t/BlockGlobals.o
44
// RUN: %target-build-swift %s -import-objc-header %S/Inputs/BlockGlobals/BlockGlobals.h %t/BlockGlobals.o -o %t/main
5+
// RUN: %target-codesign %t/main
56
// RUN: %target-run %t/main
67

78
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/c_pointers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/SDK/check_class_for_archiving.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -module-name=_Test -import-objc-header %S/Inputs/check_class_for_archiving.h -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45

56
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/check_class_for_archiving_log.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -module-name=_Test -import-objc-header %S/Inputs/check_class_for_archiving.h -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out 2>&1 | %FileCheck %s
45

56
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/class_as_object.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/SDK/class_getImageName-static.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// RUN: %target-codesign %t/libSimpleNSObjectSubclass.dylib
44

55
// RUN: %target-build-swift %s -o %t/main -lSimpleNSObjectSubclass -L%t -import-objc-header %S/Inputs/class_getImageName-static-helper.h
6+
// RUN: %target-codesign %t/main
67
// RUN: %target-run %t/main %t/libSimpleNSObjectSubclass.dylib
78

89
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/class_getImageName.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// RUN: %target-codesign %t/libGetImageNameHelper.dylib
44

55
// RUN: %target-build-swift -g %s -I %t -o %t/main -L %t -lGetImageNameHelper
6+
// RUN: %target-codesign %t/main
67
// RUN: %target-run %t/main %t/libGetImageNameHelper.dylib
78

89
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/errors.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -import-objc-header %S/Inputs/errors.h -o %t/main
3+
// RUN: %target-codesign %t/main
34
// RUN: %target-run %t/main
45

56
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/mixed_mode_class_with_missing_properties.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// RUN: %target-build-swift -whole-module-optimization -emit-module-path %t/UsingObjCStuff.swiftmodule -c -o %t/UsingObjCStuff.o -module-name UsingObjCStuff -I %t -I %S/Inputs/mixed_mode -swift-version 5 -parse-as-library %S/Inputs/mixed_mode/UsingObjCStuff.swift
44
// RUN: %target-build-swift -o %t/a.out.v4 -I %t -I %S/Inputs/mixed_mode -module-name main -swift-version 4 %t/main.swift %t/UsingObjCStuff.o
55
// RUN: %target-build-swift -o %t/a.out.v5 -I %t -I %S/Inputs/mixed_mode -module-name main -swift-version 5 %t/main.swift %t/UsingObjCStuff.o
6+
// RUN: %target-codesign %t/a.out.v4
7+
// RUN: %target-codesign %t/a.out.v5
68
// RUN: %target-run %t/a.out.v4 | %FileCheck %s
79
// RUN: %target-run %t/a.out.v5 | %FileCheck %s
810

trunk/test/Interpreter/SDK/multi-file-imported-enum.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -module-name test -whole-module-optimization %s %S/Inputs/multi-file-imported-enum/main.swift -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/SDK/objc_bridge.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// RUN: %target-build-swift -c -parse-as-library -I %S/../../Inputs/ObjCBridging %S/../../Inputs/ObjCBridging/Appliances.swift -module-name Appliances -o %t/AppliancesSwift.o
1010

1111
// RUN: %target-build-swift -I %t -I %S/../../Inputs/ObjCBridging %s %t/AppliancesSwift.o %t/AppliancesObjC.o -o %t/a.out
12+
// RUN: %target-codesign %t/a.out
1213
// RUN: %target-run %t/a.out | %FileCheck %s
1314

1415
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/objc_bridge_cast_newtype.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/main -import-objc-header %S/Inputs/objc_bridge_cast_newtype.h
3+
// RUN: %target-codesign %t/main
34
// RUN: %target-run %t/main
45

56
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/objc_implicit_inner_pointer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-clang -fobjc-arc %S/Inputs/objc_implicit_inner_pointer/objc_implicit_inner_pointer.m -c -o %t/objc_implicit_inner_pointer.o
33
// RUN: %target-build-swift %s -import-objc-header %S/Inputs/objc_implicit_inner_pointer/objc_implicit_inner_pointer.h %t/objc_implicit_inner_pointer.o -o %t/main
4+
// RUN: %target-codesign %t/main
45
// RUN: %target-run %t/main | %FileCheck %s
56

67
// REQUIRES: executable_test

trunk/test/Interpreter/SDK/objc_mangling.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -module-name MangleTest %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/SDK/weak_objc_interop.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// RUN: cp %s %t/main.swift
44
// RUN: %target-clang -fobjc-arc %S/Inputs/ObjCWeak/ObjCWeak.m -c -o %t/ObjCWeak.o
55
// RUN: %target-build-swift %t/main.swift -I %S/Inputs/ObjCWeak/ -Xlinker %t/ObjCWeak.o -o %t/weak_objc_interop -Xfrontend -disable-access-control
6+
// RUN: %target-codesign %t/weak_objc_interop
67
// RUN: %target-run %t/weak_objc_interop 2>&1 | %FileCheck %s
78
// REQUIRES: executable_test
89

trunk/test/Interpreter/availability_weak_linking.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: cp -R %S/Inputs/FakeUnavailableObjCFramework.framework %t
33
// RUN: %target-clang -dynamiclib %S/Inputs/FakeUnavailableObjCFramework.m -fmodules -F %t -framework Foundation -o %t/FakeUnavailableObjCFramework.framework/FakeUnavailableObjCFramework
4-
4+
// RUN: %target-codesign %t/FakeUnavailableObjCFramework.framework/FakeUnavailableObjCFramework
55
// RUN: %target-build-swift -F %t %s -o %t/UseWeaklinkedUnavailableObjCFramework
66
// RUN: %target-build-swift -O -F %t %s -o %t/UseWeaklinkedUnavailableObjCFramework.opt
77

@@ -12,6 +12,8 @@
1212
// at run time.
1313
// RUN: mv %t/FakeUnavailableObjCFramework.framework %t/FakeUnavailableObjCFramework-MovedAside.framework
1414

15+
// RUN: %target-codesign %t/UseWeaklinkedUnavailableObjCFramework
16+
// RUN: %target-codesign %t/UseWeaklinkedUnavailableObjCFramework.opt
1517
// RUN: %target-run %t/UseWeaklinkedUnavailableObjCFramework | %FileCheck %s
1618
// RUN: %target-run %t/UseWeaklinkedUnavailableObjCFramework.opt | %FileCheck %s
1719

trunk/test/Interpreter/builtin.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -parse-stdlib -Xfrontend -disable-access-control -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/builtin_bridge_object.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -parse-stdlib %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out | %FileCheck %s
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/c_bitfields.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -I %S/../Inputs/clang-importer-sdk/platform/any/usr/include %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/c_unions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -I %S/../Inputs/clang-importer-sdk/platform/any/usr/include %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out
45
// REQUIRES: executable_test
56

trunk/test/Interpreter/capture_top_level.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
22

33
// RUN: %target-build-swift -DVAR %s -o %t-var
4+
// RUN: %target-codesign %t-var
45
// RUN: %target-run %t-var | %FileCheck %s
56

6-
// RUN: %target-build-swift -DVAR_UPDATE %s -o %t-var
7-
// RUN: %target-run %t-var | %FileCheck %s
7+
// RUN: %target-build-swift -DVAR_UPDATE %s -o %t-var2
8+
// RUN: %target-codesign %t-var2
9+
// RUN: %target-run %t-var2 | %FileCheck %s
810

911
// REQUIRES: executable_test
1012

trunk/test/Interpreter/class_resilience.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// RUN: %target-codesign %t/libresilient_class.%target-dylib-extension
88

99
// RUN: %target-build-swift %s -L %t -I %t -lresilient_struct -lresilient_class -o %t/main -Xlinker -rpath -Xlinker %t
10+
// RUN: %target-codesign %t/main
1011

1112
// RUN: %target-run %t/main %t/libresilient_struct.%target-dylib-extension %t/libresilient_class.%target-dylib-extension
1213

@@ -16,9 +17,10 @@
1617
// RUN: %target-build-swift-dylib(%t/libresilient_class_wmo.%target-dylib-extension) -Xfrontend -enable-resilience -Xfrontend -enable-class-resilience %S/../Inputs/resilient_class.swift -emit-module -emit-module-path %t/resilient_class.swiftmodule -module-name resilient_class -I%t -L%t -lresilient_struct_wmo -whole-module-optimization
1718
// RUN: %target-codesign %t/libresilient_class_wmo.%target-dylib-extension
1819

19-
// RUN: %target-build-swift %s -L %t -I %t -lresilient_struct_wmo -lresilient_class_wmo -o %t/main -Xlinker -rpath -Xlinker %t
20+
// RUN: %target-build-swift %s -L %t -I %t -lresilient_struct_wmo -lresilient_class_wmo -o %t/main2 -Xlinker -rpath -Xlinker %t -module-name main
21+
// RUN: %target-codesign %t/main2
2022

21-
// RUN: %target-run %t/main %t/libresilient_struct_wmo.%target-dylib-extension %t/libresilient_class_wmo.%target-dylib-extension
23+
// RUN: %target-run %t/main2 %t/libresilient_struct_wmo.%target-dylib-extension %t/libresilient_class_wmo.%target-dylib-extension
2224

2325
// REQUIRES: executable_test
2426

trunk/test/Interpreter/collection_casts.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/main
33
// RUN: %target-build-swift %s -o %t/main-optimized
4+
// RUN: %target-codesign %t/main
5+
// RUN: %target-codesign %t/main-optimized
46
// RUN: %target-run %t/main | %FileCheck %s
57
// RUN: %target-run %t/main-optimized | %FileCheck %s
68
// REQUIRES: executable_test

trunk/test/Interpreter/conditional_conformances.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// RUN: %empty-directory(%t)
22
// The file that's `main` needs to be called that.
33
// RUN: cp %s %t/main.swift
4-
// RUN: %target-build-swift -D basic %t/main.swift %S/../Inputs/conditional_conformance_basic_conformances.swift -o %t/basic && %target-run %t/basic
5-
// RUN: %target-build-swift -D with_assoc %t/main.swift %S/../Inputs/conditional_conformance_with_assoc.swift -o %t/with_assoc && %target-run %t/with_assoc
6-
// RUN: %target-build-swift -D subclass %t/main.swift %S/../Inputs/conditional_conformance_subclass.swift -o %t/subclass && %target-run %t/subclass
4+
// RUN: %target-build-swift -D basic %t/main.swift %S/../Inputs/conditional_conformance_basic_conformances.swift -o %t/basic && %target-codesign %t/basic && %target-run %t/basic
5+
// RUN: %target-build-swift -D with_assoc %t/main.swift %S/../Inputs/conditional_conformance_with_assoc.swift -o %t/with_assoc && %target-codesign %t/with_assoc && %target-run %t/with_assoc
6+
// RUN: %target-build-swift -D subclass %t/main.swift %S/../Inputs/conditional_conformance_subclass.swift -o %t/subclass && %target-codesign %t/subclass && %target-run %t/subclass
77

88
// REQUIRES: executable_test
99

trunk/test/Interpreter/conditional_conformances_runtime.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out
45
// REQUIRES: executable_test
56
protocol P {

trunk/test/Interpreter/enforce_exclusive_access.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -swift-version 4 %s -o %t/a.out -enforce-exclusivity=checked -Onone
33
//
4+
// RUN: %target-codesign %t/a.out
45
// RUN: %target-run %t/a.out
56
// REQUIRES: executable_test
67

0 commit comments

Comments
 (0)