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++.jason/] [overload3.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Bug: bar is considered to be overloaded (i.e. its
// IDENTIFIER_GLOBAL_VALUES are TREE_LISTs) even though it isn't,
// so default_conversion thinks it can't resolve the name.
void foo ();
void bar ();
void baz ()
{
void (*p)() = 1 ? (void (*)()) &foo : bar;
}
Go to most recent revision | Compare with Previous | Blame | View Log