Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
4a529d26d6ccfc9b3d11031f1256f4f87055c562
/
.
/
test
/
CXX
/
dcl.decl
/
dcl.init
/
dcl.init.ref
/
p1.cpp
blob: 20c059eab6f350f92d94c28d801c7f05cff111ec [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
int
g
(
int
);
void
f
()
{
int
i
;
int
&
r
=
i
;
r
=
1
;
int
*
p
=
&
r
;
int
&
rr
=
r
;
int
(&
rg
)(
int
)
=
g
;
rg
(
i
);
int
a
[
3
];
int
(&
ra
)[
3
]
=
a
;
ra
[
1
]
=
i
;
}