URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900321_05.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// g++ 1.37.1 bug 900321_05
// The following code is legal as far as the ANSI C standard, GCC, and
// cfront are concerned, however g++ issues errors for the lines indicated.
// Cfront 2.0 passes this test.
// keywords: operator[], pointers, index
char c;
char *cp;
int i;
void function ()
{
c = 3["abcdef"]; // { dg-bogus "" }
c = i[cp]; // { dg-bogus "" }
}
int main () { return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log