Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
/
.
/
test
/
SemaTemplate
/
instantiate-enum.cpp
blob: a7acf22a45a1c1fbe11201b00e01cd8c8a8e7e69 [
file
] [
log
] [
blame
]
// RUN: clang-cc -fsyntax-only %s
template
<
typename
T
,
T I
,
int
J
>
struct
adder
{
enum
{
value
=
I
+
J
,
value2
};
};
int
array1
[
adder
<
long
,
3
,
4
>::
value
==
7
?
1
:
-
1
];