2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-12-11 09:34:50 +08:00
|
|
|
|
|
|
|
template<int IntBits> struct X {
|
|
|
|
enum {
|
|
|
|
IntShift = (unsigned long long)IntBits,
|
|
|
|
ShiftedIntMask = (1 << IntShift)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
X<1> x;
|