File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
#define INT_MAX __INT_MAX__
8
8
9
9
typedef __INTPTR_TYPE__ intptr_t ;
10
- typedef __int128 int128_t ;
11
- typedef unsigned __int128 uint128_t ;
12
10
13
11
14
12
static_assert (true , " " );
@@ -29,7 +27,10 @@ static_assert(number != 10, ""); // expected-error{{failed}} \
29
27
// ref-note{{evaluates to}}
30
28
31
29
30
+ #ifdef __SIZEOF__INT128__
32
31
namespace i128 {
32
+ typedef __int128 int128_t ;
33
+ typedef unsigned __int128 uint128_t ;
33
34
constexpr int128_t I128_1 = 12 ;
34
35
static_assert (I128_1 == 12 , " " );
35
36
static_assert (I128_1 != 10 , " " );
@@ -87,6 +88,7 @@ constexpr int128_t Error = __LDBL_MAX__; // ref-warning {{implicit conversion of
87
88
// expected-error {{must be initialized by a constant expression}} \
88
89
// expected-note {{is outside the range of representable values of type}}
89
90
}
91
+ #endif
90
92
91
93
constexpr bool b = number;
92
94
static_assert (b, " " );
You can’t perform that action at this time.
0 commit comments