OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [exception1.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR 2743 */
2
/* {dg-do compile} */
3
 
4
namespace ns {
5
  class Exception
6
  {
7
  };
8
}
9
 
10
namespace ns
11
{
12
  class Test {
13
    public:
14
      inline Test() throw( Exception );
15
      inline Test(int n ) throw( Exception );
16
    private:
17
      int i;
18
  };
19
}
20
 
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 )
24
{
25
}
26
 
27
ns::Test::Test( int n ) throw( Exception ) : i( n )
28
{
29
}
30
 
31
int main(int argc, char* argv) {
32
  ns::Test test;
33
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.