Debian Codegraph @

gcc/testsuite/g++.dg/concepts/fn-concept2.C

raw
1 // { dg-do compile { target c++17 } }
2 // { dg-options "-fconcepts" }
3 // { dg-prune-output "concept definition syntax is" }
4
5 template<typename T>
6 concept auto C1() { return 0; } // { dg-error "16:function concepts are no longer supported" }
7
8 template<typename T>
9 concept int C2() { return 0; } // { dg-error "15:function concepts are no longer supported" }