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

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