Debian Codegraph @

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

raw
1 // PR c++/55942
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 constexpr explicit A(bool b) : o{flip(b)} { }
7
8 constexpr bool flip(bool b) { return !b; }
9
10 bool o;
11 };