Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / overload7.C
blobc028d5ea1e446fc7735fe8b97812569c2c309339
1 // { dg-do run  }
2 // Check that object call works when there are multiple conversion ops
3 // returning the same type.
5 typedef int (*pfn)();
7 int zero () { return 0; }
8 int one  () { return 1; }
9 int two  () { return 2; }
11 struct A {
12   A() { }
13   operator pfn () { return one; }
14   operator pfn () const { return zero; }
15   operator pfn () volatile { return two; }
18 int
19 main ()
21   const A a;
22   return a();