Debian Codegraph @

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

raw
1 // PR c++/92443
2 // { dg-do compile { target c++11 } }
3
4 struct a {
5 constexpr a(long) : b() {}
6 operator long() const;
7 operator bool();
8 constexpr friend a operator|(a, a c) { return c; }
9 long b;
10 };
11 using d = a;
12 constexpr d e = 6, f = f | e;