summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/bitfield2.C
blob: 6599315304fcd86b23d4c48b76baedb474f54937 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/27979

class Ast
{
  enum AstKind { };
  const AstKind kind : 8;
  void foo(AstKind k) { }
  void bar(void) { foo(kind); }
};