* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / volatile1.C
blob7d818fbe9e130a5277d306df0b86bf4ee2f50bf8
1 // { dg-do assemble  }
2 // Test that failed lvalue-to-rvalue conversion of vf doesn't crash the
3 // compiler.
5 class f_class                  // { dg-message "note" "candidates" }
6 { };
8 volatile f_class
9 ret_v_f_class()
11   f_class t;
12   return t;
15 int main(void)
17   volatile f_class vf;
18   0 ? ret_v_f_class() : vf;     // { dg-error "volatile" } can't copy volatile lvalue
19   return 0;