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/] [arg2.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed arg-matching
// arg-matching file
// Message-Id: <199303032114.AA03574@kolvir.Boulder.ParcPlace.COM>
// From: Warner Losh <imp@boulder.parcplace.com>
// Subject: Overloading bug in g++ 2.3.3 (sparc) compiled by GNU C version 2.3.3
// Date: Wed, 03 Mar 1993 14:14:02 MST
class c1 { };
typedef void (*fnp)(void *);
typedef void (c1::*memfnp)(void *);
extern void fn1( fnp );
extern void fn1( c1*, memfnp );
void f3(void *) { }
void fn2()
{
fn1((fnp) &f3); // Everybody likes this
fn1(&f3); // g++ complains here line 13
}