Sign in
gnu
/
gcc
/
75bbfcfa8623f5b211475a54f52ced32201575e7
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
ref1.C
blob: b6d82aa25ca4cddb23d4aee26b0cfa5e2ab53726 [
file
] [
log
] [
blame
]
// Build don't link:
int
f
();
void
g
()
{
const
int
&
i
=
f
();
// OK
int
&
j
=
f
();
// ERROR - initialization of non-const reference
const
volatile
int
&
k
=
f
();
// ERROR - initialization of volatile ref
}