File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Inputs/clang-importer-sdk/usr/include Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s
2
+
3
+ import macros
4
+
5
+ func verifyIsSigned( _: Int64 ) { }
6
+ func verifyIsUnsigned( _: UInt64 ) { }
7
+
8
+ // Windows will not convert a long long value that overflows into an unsigned
9
+ // long long if it has the `ll` suffix of `i64` suffix. Ensure that the type is
10
+ // imported appropriately.
11
+ #if os(Windows)
12
+ verifyIsSigned ( LL_TO_ULL)
13
+ #else
14
+ verifyIsUnsigned ( LL_TO_ULL)
15
+ #endif
16
+
Original file line number Diff line number Diff line change 25
25
#define TRUE 1
26
26
#define FALSE 0
27
27
28
+ #define LL_TO_ULL 0x8000000000000000LL
29
+
28
30
#define A_PI M_PI
29
31
30
32
#define VERSION_STRING "Swift 1.0"
You can’t perform that action at this time.
0 commit comments