blob: ae15b43e5adae530bc6133c6c6031fa11f95a477 [file] [log] [blame]
// PR 16696 Strange message when operator++ not found
// { dg-do compile }
// { dg-options "-fdiagnostics-show-option" }
struct X { void operator++(); };
struct Y { };
int main () {
X x;
Y y;
x++; // { dg-bogus "trying prefix operator" }
// { dg-error "fpermissive" "" { target *-*-* } .-1 }
y++; // { dg-bogus "trying prefix operator" }
// { dg-error "fpermissive" "" { target *-*-* } .-1 }
}