Debian Codegraph @

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

raw
1 // PR c++/92187
2 // { dg-do compile { target concepts } }
3
4 template <typename>
5 concept C = false;
6
7 C auto f(auto)
8 {
9 return 42; // { dg-error "deduced return type" }
10 }
11
12 void foo()
13 {
14 f(0);
15 }