Skip to content

Commit

Permalink
[clang][Interp] Add missing static_assert messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dyung committed Aug 22, 2023
1 parent 79df15b commit a0db738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/test/AST/Interp/floats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ namespace LongDouble {

return L;
};
static_assert(f() == __LDBL_MAX__);
static_assert(f() == __LDBL_MAX__, "");

#ifdef __FLOAT128__
constexpr __float128 f128() {
const __float128 L = __LDBL_MAX__;

return L;
};
static_assert(f128() == __LDBL_MAX__);
static_assert(f128() == __LDBL_MAX__, "");
#endif
}

Expand Down

0 comments on commit a0db738

Please sign in to comment.