blob: c3fefe693db987b0f0c91cd63075e13b39de180a [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
struct foo {
static constexpr bool bar() {
return true;
}
template<bool B = bar()>
static constexpr bool baz() {
return B;
}
};
static_assert(foo::baz(), "");
// expected-no-diagnostics