summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/enum4.C
blob: 97e0b848d47b68f7e6ac220b776e248f6aead224 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/18020

template <typename> struct bar {
  enum {
    e1 = 1,
    e2 = ~e1
  };
};
template struct bar<int>;