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/] [lookup/] [exception1.C] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR 2743 */
/* { dg-do compile } */
namespace ns {
class Exception
{
};
}
namespace ns
{
class Test {
public:
inline Test() throw( Exception );
inline Test(int n ) throw( Exception );
private:
int i;
};
}
// This line used to fail because Exception wasn't looked up in the
// right scope.
ns::Test::Test() throw( Exception ) : i( 1 )
{
}
ns::Test::Test( int n ) throw( Exception ) : i( n )
{
}
int main(int argc, char* argv[]) {
ns::Test test;
}
Go to most recent revision | Compare with Previous | Blame | View Log