summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/varmod1.C
blob: 6ae78d9003f58c98e978168545100a92a435c466 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "-w" }

template<typename T> void foo(T); // { dg-message "note" }
 
void bar()
{
  int i;
  int A[i][i]; 
  foo(A); // { dg-error "" } 
  // { dg-message "candidate" "candidate note" { target *-*-* } 9 }
}