Skip to content

Commit

Permalink
[clang][Interp] Add missing static_assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Apr 8, 2023
1 parent 0260ea3 commit f43adc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/test/AST/Interp/functions.cpp
Expand Up @@ -214,10 +214,10 @@ namespace InvalidCall {
}
};
constexpr S s;
static_assert(s.a() == 1); // expected-error {{not an integral constant expression}} \
// expected-note {{in call to}} \
// ref-error {{not an integral constant expression}} \
// ref-note {{in call to}}
static_assert(s.a() == 1, ""); // expected-error {{not an integral constant expression}} \
// expected-note {{in call to}} \
// ref-error {{not an integral constant expression}} \
// ref-note {{in call to}}

/// This used to cause an assertion failure in the new constant interpreter.
constexpr void func(); // expected-note {{declared here}} \
Expand Down

0 comments on commit f43adc4

Please sign in to comment.