☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
fn-template2.C
☽
☼
gcc/testsuite/g++.dg/template/fn-template2.C
code
plain
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
}