Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
a3aef788ec802875e26fc014a4040a024eb2b506
/
.
/
clang
/
test
/
SemaTemplate
/
instantiate-enum-2.cpp
blob: 2b56a036e94796c75b5dce75a7ef22f604fb9bad [
file
] [
log
] [
blame
]
Eli Friedman
d0e6097
2009-12-11 01:34:50 +0000
[
diff
] [
blame
]
1
// RUN: clang-cc %s -fsyntax-only -verify
2
3
template
<
int
IntBits
>
struct
X
{
4
enum
{
5
IntShift
=
(
unsigned
long
long
)
IntBits
,
6
ShiftedIntMask
=
(
1
<<
IntShift
)
7
};
8
};
9
X
<
1
>
x
;