Skip to content

Commit 189674e

Browse files
committed
Fix test failure
1 parent 818f2cf commit 189674e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/SemaCXX/constant-expression-cxx11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ void testValueInRangeOfEnumerationValues() {
25132513
// expected-error@-1 {{constexpr variable 'x2' must be initialized by a constant expression}}
25142514
// expected-note@-2 {{integer value 8 is outside the valid range of values [-8, 7] for the enumeration type 'E1'}}
25152515
E1 x2b = static_cast<E1>(8); // ok, not a constant expression context
2516-
static_assert(static_cast<E1>(8));
2516+
static_assert(static_cast<E1>(8), "");
25172517
// expected-error@-1 {{static assertion expression is not an integral constant expression}}
25182518
// expected-note@-2 {{integer value 8 is outside the valid range of values [-8, 7] for the enumeration type 'E1'}}
25192519

0 commit comments

Comments
 (0)