1 // PR 16696 Strange message when operator++ not found
3 // { dg-options "-fdiagnostics-show-option" }
6 struct X { void operator++(); };
12 x++; // { dg-bogus "trying prefix operator" }
13 // { dg-error "fpermissive" "" { target *-*-* } .-1 }
14 y++; // { dg-bogus "trying prefix operator" }
15 // { dg-error "fpermissive" "" { target *-*-* } .-1 }