summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/java-1.C
blob: f88e1fcab5da99be173d42d1fbabf0ec8ed648df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-do compile { target { ! { powerpc-ibm-aix* } } } }
// { dg-options "" }
// Test extern "java" and some throwing of the objects.

extern "Java"
  namespace java
  {
    namespace lang
    {
      class Throwable;
      class Class;
  }
}
typedef class java::lang::Throwable* jthrowable;
typedef class java::lang::Class* jclass;
class java::lang::Throwable {
public:
  static jclass class$;
};
int
_Jv_FindClassFromSignature ( )
  try 
    {
    }
  catch (java::lang::Throwable *ncdfe) {}