summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/warning9.C
blob: d46ba37650cdd97b80cafc3ac943cc18579f14b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Special g++ Options: -Wsynth

struct A {
  operator int ();
  A& operator= (int);		// WARNING - not used below
};

main()
{
  A a, b;

  a = b;			// WARNING - uses synthesized op=
}