File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
stdlib/public/SwiftShims/swift/shims Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,16 @@ typedef struct _SwiftContext {
25
25
struct _SwiftContext *parentContext;
26
26
} _SwiftContext;
27
27
28
- void exit (int );
29
-
30
- #define EXIT_SUCCESS 0
31
-
32
28
#ifdef __cplusplus
33
29
} // extern "C"
34
30
} // namespace swift
35
31
#endif
36
32
33
+ #ifdef __cplusplus
34
+ extern " C" [[noreturn]]
35
+ #endif
36
+ void exit (int );
37
+
38
+ #define EXIT_SUCCESS 0
39
+
37
40
#endif // SWIFT_CONCURRENCY_H
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-ide-test -print-module -module-to-print=_SwiftConcurrencyShims -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
2
+ // RUN: %target-swift-ide-test -print-module -module-to-print=_SwiftConcurrencyShims -source-filename=x | %FileCheck %s
3
+
4
+ // REQUIRES: concurrency
5
+
6
+ // Ensure that _SwiftConcurrencyShims defines the same `exit` regardless of whether
7
+ // C++ interoperability is enabled.
8
+
9
+ // CHECK: func exit(_: Int32) -> Never
10
+ // CHECK: var EXIT_SUCCESS: Int32 { get }
You can’t perform that action at this time.
0 commit comments