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++.bugs/] [900213_02.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// g++ 1.36.1 bug 900213_02
// The following erroneous code causes g++ to abort.
// Cfront 2.0 passes this test.
// keywords: abort, member pointers, operator*
struct struct0 {
int data_member;
};
int i;
int struct0::*dmp;
void global_function_0 ()
{
i = *dmp; // { dg-error "" } causes abort
}
int main () { return 0; }