summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/bitfld1.C
blob: 471032173c8eb24a95bb5ee176bfeaf220aa1f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// Based on a bug report by Stephen Vavasis <vavasis@CS.Cornell.EDU>

// declares template operator!=
#include <utility>

struct foo {
  enum e { bar } baz:1;
  void test() { 
    baz != bar;
  }
};