Debian Codegraph @

gcc/testsuite/g++.dg/parse/bitfield3.C

raw
1 /* PR c++/35320 */
2 /* { dg-do compile } */
3
4 typedef void (func_type)();
5
6 struct A
7 {
8 friend func_type f : 2; /* { dg-error "20:bit-field .void f\\(\\). with non-integral type .func_type." } */
9 };