URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR 2743 */
|
/* PR 2743 */
|
/* {dg-do compile} */
|
/* {dg-do compile} */
|
|
|
namespace ns {
|
namespace ns {
|
class Exception
|
class Exception
|
{
|
{
|
};
|
};
|
}
|
}
|
|
|
namespace ns
|
namespace ns
|
{
|
{
|
class Test {
|
class Test {
|
public:
|
public:
|
inline Test() throw( Exception );
|
inline Test() throw( Exception );
|
inline Test(int n ) throw( Exception );
|
inline Test(int n ) throw( Exception );
|
private:
|
private:
|
int i;
|
int i;
|
};
|
};
|
}
|
}
|
|
|
// This line used to fail because Exception wasn't looked up in the
|
// This line used to fail because Exception wasn't looked up in the
|
// right scope.
|
// right scope.
|
ns::Test::Test() throw( Exception ) : i( 1 )
|
ns::Test::Test() throw( Exception ) : i( 1 )
|
{
|
{
|
}
|
}
|
|
|
ns::Test::Test( int n ) throw( Exception ) : i( n )
|
ns::Test::Test( int n ) throw( Exception ) : i( n )
|
{
|
{
|
}
|
}
|
|
|
int main(int argc, char* argv) {
|
int main(int argc, char* argv) {
|
ns::Test test;
|
ns::Test test;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.