* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / pr16696.C
blobae15b43e5adae530bc6133c6c6031fa11f95a477
1 // PR 16696 Strange message when operator++ not found
2 // { dg-do compile } 
3 // { dg-options "-fdiagnostics-show-option" } 
6 struct X { void operator++(); }; 
7 struct Y { };
9 int main () { 
10   X x; 
11   Y y;
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 }
16