Debian Codegraph @

gcc/testsuite/g++.dg/template/fn-template2.C

raw
1 // PR c++/118516
2 // { dg-do compile }
3
4 int foo();
5 int main()
6 {
7 for (int id = 0; i < // { dg-error "not declared in this scope" }
8 foo(); ++id); // { dg-bogus "call to non-.constexpr." }
9 }