Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
ref1.C
blob: df4ff470d09605764711d086ed398a93a6ac66f1 [
file
] [
log
] [
blame
]
// { dg-do assemble }
int
f
();
void
g
()
{
const
int
&
i
=
f
();
// OK
int
&
j
=
f
();
// { dg-error "" } initialization of non-const reference
const
volatile
int
&
k
=
f
();
// { dg-error "" } initialization of volatile ref
}