summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/ref5.C
blob: 3ab3442884a9d5676e54fd51a8a774ea235b2e8f (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }

int i;
int &const j = i;		// { dg-error "" } invalid const
int &const f();			// { dg-error "" } invalid const
void g ()
{
  j = 1;
  f() = 1;
}