Debian Codegraph @

gcc/testsuite/g++.dg/template/varmod1.C

raw
1 // { dg-options "-w" }
2
3 template<typename T> void foo(T); // { dg-message "note" }
4
5 void bar()
6 {
7 int i;
8 int A[i][i];
9 foo(A); // { dg-error "" }
10 // { dg-message "(candidate|not a valid template argument)" "candidate note" { target *-*-* } .-1 }
11 }