aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/assign1.C
blob: 5f6ad34551313ec5a1227430d5620ee9a0c97619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

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

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