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 33// RUN: %target-swift-frontend %s -typecheck -DNOCRASH1 -use-clang-function-types
44// RUN: %target-swift-frontend %s -typecheck -DNOCRASH2 -sdk %clang-importer-sdk
55// 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
76
87// 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
99// RUN: %target-swift-frontend %s -typecheck -DNOCRASH3 -I %t
1010
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
1214
1315#if NOCRASH1
1416public func my_signal( ) -> Optional < @convention ( c) ( Int32 ) -> Void > {
@@ -45,19 +47,3 @@ public func my_signal4() -> Optional<@convention(c) (Int32) -> Void> {
4547 return Foo . DUMMY_SIGNAL2
4648}
4749#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