URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR c++/14688
|
// PR c++/14688
|
// { dg-do compile { target i?86-*-* x86_64-*-* } }
|
// { dg-do compile { target i?86-*-* x86_64-*-* } }
|
// { dg-require-effective-target ilp32 }
|
// { dg-require-effective-target ilp32 }
|
|
|
class one
|
class one
|
{
|
{
|
public:
|
public:
|
virtual void
|
virtual void
|
test(void* value); // { dg-error "overriding" }
|
test(void* value); // { dg-error "overriding" }
|
};
|
};
|
|
|
class two : public one
|
class two : public one
|
{
|
{
|
public:
|
public:
|
void __attribute__((regparm(2)))
|
void __attribute__((regparm(2)))
|
test(void* value); // { dg-error "conflicting type attributes" }
|
test(void* value); // { dg-error "conflicting type attributes" }
|
};
|
};
|
|
|
class three : public one
|
class three : public one
|
{
|
{
|
public:
|
public:
|
void __attribute__ ((cdecl))
|
void __attribute__ ((cdecl))
|
test(void* value); // OK
|
test(void* value); // OK
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.