Sign in
cobalt
/
cobalt
/
37ef7f8c0c60f95c9821b4d9f3273c9ef3666a79
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
CXX
/
dcl.decl
/
dcl.init
/
dcl.init.ref
/
p1.cpp
blob: 76053f028e2b8d43b644420d0d688ccd4ca34d9e [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// expected-no-diagnostics
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
;
}