summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/bitfield3.C
blob: 387548a6827299aee6adbe8d27d8e9768529c3e1 (plain)
1
2
3
4
5
6
7
8
9
/* PR c++/35320 */
/* { dg-do compile } */

typedef void (func_type)();

struct A
{
  friend func_type f : 2; /* { dg-error "with non-integral type" } */
};