Skip to content

Commit

Permalink
[clang][Interp] Disable int128 tests on targets that don't have int128
Browse files Browse the repository at this point in the history
This broke build bots.
  • Loading branch information
tbaederr committed Oct 1, 2023
1 parent 632022e commit c77b2ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clang/test/AST/Interp/literals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#define INT_MAX __INT_MAX__

typedef __INTPTR_TYPE__ intptr_t;
typedef __int128 int128_t;
typedef unsigned __int128 uint128_t;


static_assert(true, "");
Expand All @@ -29,7 +27,10 @@ static_assert(number != 10, ""); // expected-error{{failed}} \
// ref-note{{evaluates to}}


#ifdef __SIZEOF__INT128__
namespace i128 {
typedef __int128 int128_t;
typedef unsigned __int128 uint128_t;
constexpr int128_t I128_1 = 12;
static_assert(I128_1 == 12, "");
static_assert(I128_1 != 10, "");
Expand Down Expand Up @@ -87,6 +88,7 @@ constexpr int128_t Error = __LDBL_MAX__; // ref-warning {{implicit conversion of
// expected-error {{must be initialized by a constant expression}} \
// expected-note {{is outside the range of representable values of type}}
}
#endif

constexpr bool b = number;
static_assert(b, "");
Expand Down

0 comments on commit c77b2ad

Please sign in to comment.