File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
Inputs/clang-importer-sdk/usr/include Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,19 @@ func testTribool() {
28
28
_ = b. rawValue
29
29
}
30
30
31
+ func verifyIsInt( _: inout Int ) { }
32
+ func verifyIsUInt( _: inout UInt ) { }
33
+ func verifyIsUInt64( _: inout UInt64 ) { }
34
+
31
35
func testAnonEnum( ) {
32
36
var a = AnonConst1
33
37
a = AnonConst2
34
- #if arch(i386) || arch(arm) || os(Windows)
35
- _ = a as CUnsignedLongLong
38
+ #if os(Windows)
39
+ verifyIsInt ( & a)
40
+ #elseif arch(i386) || arch(arm)
41
+ verifyIsUInt64 ( & a)
36
42
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
37
- _ = a as CUnsignedLong
38
- #else
39
- __portMe ( )
43
+ verifyIsUInt ( & a)
40
44
#endif
41
45
}
42
46
Original file line number Diff line number Diff line change @@ -7,18 +7,10 @@ enum Tribool {
7
7
True , False , Indeterminate
8
8
};
9
9
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
- {
10
+ enum {
18
11
AnonConst1 = 0x700000000 ,
19
12
AnonConst2
20
13
};
21
- _Static_assert (sizeof (AnonConst1 ) == 8 );
22
14
23
15
enum {
24
16
AnonConstSmall1 = 16 ,
You can’t perform that action at this time.
0 commit comments