URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [typeck4.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed typeck
class A {
public:
const int &operator[]( int i );
private:
int k;
};
const int& A::operator[]( int i )
{
return k;
}
void ff( A &anA )
{
int &ani = anA[0];// { dg-error "" }
ani = 7;
}