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.5.1/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [override-attribs.C] - Rev 604
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/14688
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
class one
{
public:
virtual void
test(void* value); // { dg-error "overriding" }
};
class two : public one
{
public:
void __attribute__((regparm(2)))
test(void* value); // { dg-error "conflicting type attributes" }
};
class three : public one
{
public:
void __attribute__ ((cdecl))
test(void* value); // OK
};
Go to most recent revision | Compare with Previous | Blame | View Log