summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/enum6.C
blob: 9df6d41063b06c91b4387129b56ec97cda1d9a27 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/34774

template<int shifts>
struct shift {
  enum {
    n0 = (unsigned)shifts,
    n = n0 ? 0 : n0,
    n_comp = -n
  } x;
};