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