Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-requires15.C

raw
1 // { dg-do compile { target c++20 } }
2
3 struct string;
4
5 template<typename T>
6 concept C = string; // { dg-error "expected primary-expression" }
7
8 template<C T>
9 void fun(T s) { }
10
11 int main(int, char **) {
12 fun((int *)0); // { dg-error "" }
13 return 0;
14 }
15