Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-redeclaration3.C

raw
1 // PR c++/111132
2 // { dg-do compile { target c++11 } }
3
4 constexpr bool bar(void) {
5 return true;
6 }
7
8 constexpr bool foo() {
9 constexpr bool bar(void);
10 return bar();
11 }
12
13 static_assert(foo(), "");