Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / exception1.C
blobb5fcd0a6c4d2ee1323678ff540d695ce0c07a12f
1 /* PR 2743 */
2 /* { dg-do compile } */
4 namespace ns {
5   class Exception
6   {
7   };
10 namespace ns
12   class Test {
13     public:
14       inline Test() throw( Exception );
15       inline Test(int n ) throw( Exception );
16     private:
17       int i;
18   };
21 // This line used to fail because Exception wasn't looked up in the
22 // right scope.
23 ns::Test::Test() throw( Exception ) : i( 1 )
27 ns::Test::Test( int n ) throw( Exception ) : i( n )
31 int main(int argc, char* argv[]) {
32   ns::Test test;