aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/assign1.C
blob: dfdaab27010dd3c15404f58240575ff3866fcc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S {
  S();
  T t;
};

void f()
{
  S<const int> s;
  s = s; // ERROR - generated assignment operator is illegal
}