aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/bit-field1.C
blob: 318caaaeb6576fa799fe7bffd792de65815ed156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/92859
// { dg-do compile { target c++11 } }

void f(int) = delete;

struct ES { 
  enum E { v }; 
  friend void f(E) { }
};

struct S {
  ES::E e : 1; 
};

int main() {
  S s{}; 
  f (s.e);
}