File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Inputs/clang-importer-sdk/usr/include Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func testTribool() {
3131func testAnonEnum( ) {
3232 var a = AnonConst1
3333 a = AnonConst2
34- #if arch(i386) || arch(arm)
34+ #if arch(i386) || arch(arm) || os(Windows)
3535 _ = a as CUnsignedLongLong
3636#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
3737 _ = a as CUnsignedLong
Original file line number Diff line number Diff line change @@ -7,10 +7,18 @@ enum Tribool {
77 True , False , Indeterminate
88};
99
10- enum {
10+ // This is explicitly sized on Windows since we do not use the type to infer the
11+ // type that we are importing it as as this is known to be explicitly different
12+ // in that environment.
13+ enum
14+ #if defined(_WIN32 )
15+ : unsigned long long
16+ #endif
17+ {
1118 AnonConst1 = 0x700000000 ,
1219 AnonConst2
1320};
21+ _Static_assert (sizeof (AnonConst1 ) == 8 );
1422
1523enum {
1624 AnonConstSmall1 = 16 ,
You can’t perform that action at this time.
0 commit comments