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 77#define INT_MAX __INT_MAX__
88
99typedef __INTPTR_TYPE__ intptr_t ;
10- typedef __int128 int128_t ;
11- typedef unsigned __int128 uint128_t ;
1210
1311
1412static_assert (true , " " );
@@ -29,7 +27,10 @@ static_assert(number != 10, ""); // expected-error{{failed}} \
2927 // ref-note{{evaluates to}}
3028
3129
30+ #ifdef __SIZEOF__INT128__
3231namespace i128 {
32+ typedef __int128 int128_t ;
33+ typedef unsigned __int128 uint128_t ;
3334 constexpr int128_t I128_1 = 12 ;
3435 static_assert (I128_1 == 12 , " " );
3536 static_assert (I128_1 != 10 , " " );
@@ -87,6 +88,7 @@ constexpr int128_t Error = __LDBL_MAX__; // ref-warning {{implicit conversion of
8788 // expected-error {{must be initialized by a constant expression}} \
8889 // expected-note {{is outside the range of representable values of type}}
8990}
91+ #endif
9092
9193constexpr bool b = number;
9294static_assert (b, " " );
You can’t perform that action at this time.
0 commit comments