3 // { dg-do compile { target { ! { powerpc-ibm-aix* } } } }
7 typedef __java_byte jbyte;
14 typedef struct java::lang::Object* jobject;
15 typedef java::lang::Class *jclass;
17 extern "C" jobject _Jv_AllocObject (jclass);
20 struct A { static java::lang::Class class$; };
24 A a; // { dg-error "has Java class type" }
27 void* operator new (__SIZE_TYPE__, void*) throw();
30 A a; // { dg-error "not allocated with" }
31 A b = A (); // { dg-error "not allocated with" }
32 A *c = new ((void *) buf) A (); // { dg-error "using placement new" }
36 const A fn1 () // { dg-error "return type has Java class type" }
38 A a; // { dg-error "not allocated with" }
42 A fn2 () // { dg-error "return type has Java class type" }
44 A a; // { dg-error "not allocated with" }
63 void fn6 (A x) // { dg-error "has Java class type" }
67 void fn7 (const A x) // { dg-error "has Java class type" }