summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-enum-2.cpp
blob: 2b56a036e94796c75b5dce75a7ef22f604fb9bad (plain)
1
2
3
4
5
6
7
8
9
// RUN: clang-cc %s -fsyntax-only -verify

template<int IntBits> struct X {
  enum {
    IntShift = (unsigned long long)IntBits,
    ShiftedIntMask = (1 << IntShift)
  };
};
X<1> x;
OpenPOWER on IntegriCloud