URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [init8.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed initialization
// init file
// From: kol@world.std.com (Nikolay Yatsenko)
// Date: Wed, 27 Jan 1993 16:39:13 -0500
// Subject: g++ bug
// Message-ID: <199301272139.AA25514@world.std.com>
const int ic = 1;
void f(int& arg) // { dg-error "passing argument 1" }
{
if (arg) ;
}
const int& icr = ic;
int main(void)
{
f(icr); // { dg-error "invalid initialization" }
return 0;
}