summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit41.C
blob: 560370a8b48797e6090b1ba5c28d2d03aadefb78 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
template <int I>
void f(int i);			// { dg-message "note" }

void g()
{
  int i;
  f<i>(7); // { dg-error "" } template argument 1 is invalid.
  // { dg-message "candidate" "candidate note" { target *-*-* } 8 }
}