Debian Codegraph @

clang/test/SemaCXX/GH62596.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
4
5 struct foo {
6 static constexpr bool bar() {
7 return true;
8 }
9
10 template<bool B = bar()>
11 static constexpr bool baz() {
12 return B;
13 }
14 };
15 static_assert(foo::baz(), "");
16
17 // expected-no-diagnostics