1 // Check that object call works when there are multiple conversion ops
2 // returning the same type.
3 
4 typedef int (*pfn)();
5 
zero()6 int zero () { return 0; }
one()7 int one  () { return 1; }
two()8 int two  () { return 2; }
9 
10 struct A {
AA11   A() { }
pfnA12   operator pfn () { return one; }
pfnA13   operator pfn () const { return zero; }
pfnA14   operator pfn () volatile { return two; }
15 };
16 
17 int
main()18 main ()
19 {
20   const A a;
21   return a();
22 }
23