Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / parse / pr16696-permissive.C
blob1d8a920ad25e544f41c766d4da7e01878e7af1c8
1 // PR 16696 Strange message when operator++ not found
2 // { dg-do compile } 
3 // { dg-options "-fdiagnostics-show-option -fpermissive" } 
6 struct X { void operator++(); }; 
7 struct Y { };
9 int main () { 
10   X x; 
11   Y y;
12   x++; // { dg-warning "trying prefix operator" } 
14   y++; // { dg-warning "trying prefix operator" } 
15   // { dg-error "no match" "" { target *-*-* } 14 }
16