Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
ad2956c25d5f549777b8f5b728277cf0cdbf7275
/
.
/
clang
/
test
/
SemaTemplate
/
dependent-sized_array.cpp
blob: 77b2bdce30f0d0003672ba3097f7fa11b6a9c7b6 [
file
] [
log
] [
blame
]
Douglas Gregor
ad2956c
2009-11-19 18:03:26 +0000
[
diff
] [
blame^
]
1
// RUN: clang-cc -fsyntax-only -verify %s
2
3
template
<
int
N
>
4
void
f
()
{
5
int
a
[]
=
{
1
,
2
,
3
,
N
};
6
unsigned
numAs
=
sizeof
(
a
)
/
sizeof
(
int
);
7
}
8
9
template
void
f
<
17
>();
10