Debian Codegraph @

gcc/testsuite/g++.dg/concepts/pr95386.C

raw
1 // PR c++/95386
2 // { dg-do compile { target concepts } }
3
4 template <typename> struct blah {
5 typedef bool value_type;
6 constexpr operator value_type() { return false; }
7 };
8
9 template <class T> void fn1(T) requires (!blah<T>());
10
11 void fn2() { fn1(0); }