#! [contains] can't use non global fptr of other class
class C {
- typedef void t_ptr() {}
+ typedef void t_ptr();
}
class D {
- typedef void t_ptr() {}
+ typedef void t_ptr();
C->t_ptr ptr;
}
#! [contains] NullPtrException
-typedef void Test()
+typedef void Test();
Test test;
test();
#! [contains] can only be used at class scope
-typedef static void my_fun(){}
+typedef static void my_fun();
#! [contains] unknown type
- typedef unknown_type my_fun(){}
+typedef unknown_type my_fun();
#! [contains] cannot declare variables of size '0'
- typedef void my_func(void arg){}
+typedef void my_func(void arg);
#! [contains] must be defined with empty
- typedef void my_func (int i[4]){}
+typedef void my_func (int i[4]);
#! [contains] has already been defined in the same scope
int i;
-typedef void i(){}
+typedef void i();
#! [contains] can't use non global fptr of other class
class C {
- typedef void t_ptr() {}
+ typedef void t_ptr();
}
class D {
- typedef void t_ptr() {}
+ typedef void t_ptr();
C->t_ptr ptr;
}