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
tbaederr committed May 4, 2023
1 parent c267501 commit 6ccf330
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 @@ -101,14 +101,14 @@ namespace unary {
assert(f == 1.0);
return 1.0;
}
static_assert(a() == 1.0);
static_assert(a() == 1.0, "");

constexpr float b() {
float f = __FLT_MAX__;
f++;
return f;
}
static_assert(b() == __FLT_MAX__);
static_assert(b() == __FLT_MAX__, "");
}


Expand Down

0 comments on commit 6ccf330

Please sign in to comment.