summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/param3.C
blob: 0c1e70326fa6a31796a6e4a0ff27db74c8df7f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/49418

template <class T>
void f (const T t)
{
  t = 1;			// { dg-error "" }
}

int main()
{
  f(1);
}