Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
8e8fb3be5bd78f0564444eca02b404566a5f3b5d
/
.
/
test
/
CXX
/
temp
/
temp.param
/
p5.cpp
blob: 67efc4e48162544e8543a7f4a8d1e9c1f3c55110 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -verify %s -std=c++11
// expected-no-diagnostics
template
<
const
int
I
>
struct
S
{
decltype
(
I
)
n
;
int
&&
r
=
I
;
};
S
<
5
>
s
;
template
<
typename
T
,
T v
>
struct
U
{
decltype
(
v
)
n
;
int
&&
r
=
v
;
};
U
<
const
int
,
6
>
u
;