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 {
2525 struct _SwiftContext *parentContext;
2626} _SwiftContext;
2727
28- void exit (int );
29-
30- #define EXIT_SUCCESS 0
31-
3228#ifdef __cplusplus
3329} // extern "C"
3430} // namespace swift
3531#endif
3632
33+ #ifdef __cplusplus
34+ extern " C" [[noreturn]]
35+ #endif
36+ void exit (int );
37+
38+ #define EXIT_SUCCESS 0
39+
3740#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