blob: 9423ac1269b6960a285781bc35993243b279c990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-do assemble }
// { dg-options "-Wsynth" }
struct A {
operator int ();
A& operator= (int); // { dg-warning "" } not used below
};
main()
{
A a, b;
a = b; // { dg-warning "" } uses synthesized op=
}
|