* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / other / offsetof8.C
blob0668199b3669c494927714d794460a65f8c49ef2
1 // PR c++/68711 - [5 regression] SEGV on an invalid offsetof of a member
2 //                of a virtual base
3 // { dg-do compile }
5 struct A { int i; };
7 struct B: virtual A { };
9 int a[]  = {
10   !&((B*)0)->i,    // { dg-error "invalid access to non-static data member" }
11   __builtin_offsetof (B, i)   // { dg-error "invalid access to non-static" }
12 };                            // { dg-error "offsetof within non-standard-layout type" "" { target *-*-* } .-1 }