-fun global void global_func_err() { <<< _func__ >>>; }
+fun global void global_func_err() { <<< __func__ >>>; }
int i;
-i :=> <~int~>Ptr pi;
-<<<12 => *pi, " ", *pi>>>;
+i :=> <~int~>Ptr pti;
+<<<12 => *pti, " ", *pti>>>;
-int i;
-i++;
-
class C { int i; }
operator ++ int (C c) {
<<< "here" >>>;
-123 => global int g_i;
-class global C {
+123 => global int global_func_i;
+class global GlobalFuncClass {
13 => int i;
}
-<<< g_i >>>;
-global C g_c;
+<<< global_func_i >>>;
+global GlobalFuncClass g_c;
<<< g_c, "->i => ", g_c.i >>>;
-fun global void g_test() { <<< g_i >>>; <<< g_c >>>; <<< g_c.i >>>; <<< "test" >>>; }
+fun global void g_test() { <<< global_func_i >>>; <<< g_c >>>; <<< g_c.i >>>; <<< "test" >>>; }
#!fun global void g_test() { <<< "test" >>>; }
<<< g_test >>>;
<<< g_test() >>>;
-<<< g_i >>>;
+<<< global_func_i >>>;
<<< g_c >>>;
<<< g_c.i >>>;
<<< g_test >>>;
-<<< global int g_i >>>;
+<<< global int global_var_i >>>;
<<< __func__, " ", a >>>;
<<< i, " ", a >>>;
if(i)
- test<~int~>((i-2, b));
-#! test((i-2.0));
+ test<~int~>((i-2, b$int));
}
test<~float~>(2, 2);
class<~A~>C extends B{}
class<~A,B~>D extends<~A~>C{
- class<~A~>int{}
+ class<~A~> E{}
class G extends ld
{A0I:}
<~A~>d d;
string s;
}
-global GlobalStruct s;
+global GlobalStruct global_s;
GlobalStructWithCtor sctor;
class C {
- 12 => int i;
+ 12 => int _i;
union {
int i;
float f;
1.23 => c.U.f;
<<< c.U.f >>>;
<<< c.U.i >>>;
-<<< c.i >>>;
+<<< c._i >>>;
match i,2 {
case 12 when 0:;
case _,2 when 0:;
- } where int i;
+ } where int b;
enum { zero };
typedef int Int;
goto end;
class C {
fun void test(int i) { <<< "int arg" >>>; }
- typedef void Ptr(int i);
+ typedef void ptr_t(int i);
test @=>
- Ptr p;
+ ptr_t p;
p(1);
test @=> p;
p(1);
union global {
- int int_from_global_union;
- float float_from_global_union;
+ int int_from_global_nanmed_union;
+ float float_from_global_named_union;
} global_union;
<<< "HERE", global_union >>>;
-<<< 123.456 => global_union.float_from_global_union >>>;
-<<< global_union.float_from_global_union >>>;
+<<< 123.456 => global_union.float_from_global_named_union >>>;
+<<< global_union.float_from_global_named_union >>>;
-class global C {
+class global StaticTmpl {
fun static void t<~A~>() { <<< __func__ >>>; }
}
-class D extends C {
+class D extends StaticTmpl {
}
-fun void test(C c) {
- C.t<~int~>();
+fun void test(StaticTmpl c) {
+ StaticTmpl.t<~int~>();
}
#!D d;