instantiate-enum-2.cpp 211 B

12345678910
  1. // RUN: %clang_cc1 %s -fsyntax-only -verify
  2. // expected-no-diagnostics
  3. template<int IntBits> struct X {
  4. enum {
  5. IntShift = (unsigned long long)IntBits,
  6. ShiftedIntMask = (1 << IntShift)
  7. };
  8. };
  9. X<1> x;