URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
template
|
template
|
class S
|
class S
|
{
|
{
|
protected:
|
protected:
|
template
|
template
|
void f(U); // { dg-error "" } is protected
|
void f(U); // { dg-error "" } is protected
|
|
|
private:
|
private:
|
template
|
template
|
void g(U); // { dg-error "" } is private
|
void g(U); // { dg-error "" } is private
|
};
|
};
|
|
|
|
|
void f()
|
void f()
|
{
|
{
|
S s;
|
S s;
|
s.f(3); // { dg-error "" } within this context
|
s.f(3); // { dg-error "" } within this context
|
s.g(2.0); // { dg-error "" } within this context
|
s.g(2.0); // { dg-error "" } within this context
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.