File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 3
3
// RUN: %target-swift-frontend %s -typecheck -DNOCRASH1 -use-clang-function-types
4
4
// RUN: %target-swift-frontend %s -typecheck -DNOCRASH2 -sdk %clang-importer-sdk
5
5
// RUN: %target-swift-frontend %s -typecheck -DNOCRASH2 -sdk %clang-importer-sdk -use-clang-function-types
6
- // RUN: %target-swift-frontend %s -DAUXMODULE -module-name Foo -emit-module -o %t
7
6
8
7
// rdar://problem/57644243 : We shouldn't crash if -use-clang-function-types is not enabled.
8
+ // RUN: %target-swift-frontend %s -DAUXMODULE -module-name Foo -emit-module -o %t
9
9
// RUN: %target-swift-frontend %s -typecheck -DNOCRASH3 -I %t
10
10
11
- // RUN: %target-swift-frontend %s -typecheck -DCRASH -I %t -use-clang-function-types
11
+ // RUN: %empty-directory(%t)
12
+ // RUN: %target-swift-frontend %s -DAUXMODULE -module-name Foo -emit-module -o %t -use-clang-function-types
13
+ // RUN: %target-swift-frontend %s -typecheck -DNOCRASH3 -I %t -use-clang-function-types
12
14
13
15
#if NOCRASH1
14
16
public func my_signal( ) -> Optional < @convention ( c) ( Int32 ) -> Void > {
@@ -45,19 +47,3 @@ public func my_signal4() -> Optional<@convention(c) (Int32) -> Void> {
45
47
return Foo . DUMMY_SIGNAL2
46
48
}
47
49
#endif
48
-
49
- #if CRASH
50
- import Foo
51
- public func my_signal1( ) -> Optional < @convention ( c) ( Int32 ) -> ( ) > {
52
- return Foo . DUMMY_SIGNAL1
53
- }
54
- public func my_signal2( ) -> Optional < @convention ( c) ( Int32 ) -> Void > {
55
- return Foo . DUMMY_SIGNAL1
56
- }
57
- public func my_signal3( ) -> Optional < @convention ( c) ( Int32 ) -> ( ) > {
58
- return Foo . DUMMY_SIGNAL2
59
- }
60
- public func my_signal4( ) -> Optional < @convention ( c) ( Int32 ) -> Void > {
61
- return Foo . DUMMY_SIGNAL2
62
- }
63
- #endif
You can’t perform that action at this time.
0 commit comments