Skip to content

Commit 309819d

Browse files
committed
Change a few more static_asserts
1 parent aec5cce commit 309819d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libcxx/test/std/utilities/optional/optional.object/optional.object.observe/dereference_const.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int main(int, char**)
5959
{
6060
static constexpr X x{};
6161
constexpr optional<const X&> opt(x);
62-
static_assert((*opt).test() == 3, "");
62+
static_assert((*opt).test() == 3);
6363
}
6464
#endif
6565
{

libcxx/test/std/utilities/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int main(int, char**)
7070
{
7171
static constexpr Z z{};
7272
constexpr optional<const Z&> opt(z);
73-
static_assert(opt->test() == 1, "");
73+
static_assert(opt->test() == 1);
7474
}
7575
#endif
7676

0 commit comments

Comments
 (0)