Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr68093-2.C

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-additional-options "-fconcepts" }
3 template <class T>
4 concept True = true;
5
6 template <class T>
7 struct S {
8 friend bool operator==(S, int) requires (True<T>) { return true; }
9 friend bool operator==(S, int) requires (!True<T>) { return true; }
10 };
11
12 int main() {
13 S<int> s;
14 }