c++: Fix get_member_function_from_ptrfunc with -fsanitize=bounds [PR116449]
[official-gcc.git] / gcc / testsuite / g++.dg / parse / bitfield3.C
blobefff2ec993e1180506e40ee2a8b07611a77037d4
1 /* PR c++/35320 */
2 /* { dg-do compile } */
4 typedef void (func_type)();
6 struct A
8   friend func_type f : 2; /* { dg-error "20:bit-field .void f\\(\\). with non-integral type .func_type." } */
9 };