8sa1-gcc/gcc/testsuite/g++.old-deja/g++.jason/ref5.C
Jason Merrill f070035e54 update
From-SVN: r24151
1998-12-07 07:27:51 -05:00

11 lines
150 B
C

// Build don't link:
int i;
int &const j = i; // ERROR - invalid const
int &const f(); // ERROR - invalid const
void g ()
{
j = 1;
f() = 1;
}