/* ERRORS noreturn syntax errors in function declarations */ noreturn; noreturn a; noreturn int b; noreturn#[1] c; (noreturn)^ d; noreturn^()^ e; int f() noreturn; noreturn noreturn; noreturn noreturn g; /* ERRORS noreturn syntax errors in function types */ typedef ta = noreturn; typedef tb = noreturn x; typedef tc = noreturn int; typedef td = noreturn#[1]; typedef te = (noreturn)^; typedef tf = noreturn^()^; typedef tg = int noreturn; typedef th = ()noreturn; typedef ti = noreturn noreturn; /* ERRORS */ () variadic1(...*); // need at least one parameter () variadic2(int y...*); // wrong syntax () variadic3(int...* y); // wrong syntax typedef variadictype1 = ()(...*); typedef variadictype2 = ()(int x, (int a)^ y...*); typedef variadictype3 = ()(int...* x); typedef variadictype4 = ()(int x, (int a)^...* y); // Trying to use a corrupt function definition as a struct var ta da; var tb db; var tc dc; var td dd; var te de; var tf df; var tg dg; var th dh; var ti di; () test() { /* ERRORS OPTIONAL */ da.x = 123; db.x = 123; dc.x = 123; dd.x = 123; df.x = 123; dg.x = 123; dh.x = 123; di.x = 123; }