Skip to content

Commit 88e2562

Browse files
[NFC] Tidy up test relying to Clang type serialization.
1 parent 8e63a4b commit 88e2562

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

test/Sema/clang_types_in_ast.swift

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
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
1416
public 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

0 commit comments

Comments
 (0)