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