Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-redeclaration4.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 bar(void);
9
10 constexpr bool foo() {
11 return bar();
12 }
13
14 static_assert(foo(), "");