Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
f8fd82ba49827db0f6a6ba00c55a7b56b12a19fa
/
.
/
test
/
SemaTemplate
/
instantiate-enum.cpp
blob: 6f9aa4b116d75dc205eeac03d5aa57bc4fb2fe57 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -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
];