1 /* PR middle-end/98266 - bogus array subscript is partly outside array
2 bounds on virtual inheritance
4 { dg-options "-O2 -Wall" } */
6 #if __cplusplus < 201103L
7 // This matters for the test case.
8 # define noexcept throw ()
13 virtual ~A () noexcept;
17 struct B: virtual A { };
18 struct C: virtual A { }; // { dg-bogus "\\\[-Warray-bounds" }
20 struct D: virtual B, virtual C
29 // Verify that accesses to the table aren't diagnosed.