summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb5.C
blob: 06e31b61132da79b83132777c289f31069298a39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
enum { a, b };

class Bug {
  int pri:8;
  int flags:15;
public:
  void bug() {
    flags |= a;   // this does not work
  }
};

void dummy(Bug x) { x.bug(); }