aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/def_function_special.good
blob: 5d85a17df876fd7b4e0fca680d87ac6ad132f49f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22


noreturn run_forever() {
    while :true { }
}

noreturn work();

typedef noretfntype1 = noreturn();
typedef noretfntype2 = noreturn(int x);


() variadic1(char+> fmt, ...*);
() variadic2(char+> fmt, int x, ...*);
() variadic3(char+>, ...*);

typedef variadictype1 = ()(int x, ...*);
typedef variadictype2 = ()(int x, (int a)^ y, ...*);
typedef variadictype3 = ()(int, ...*);


noreturn variadicnoreturn(char+> fmt, ...*);
typedef variadicnoreturntype = noreturn(char+> fmt, ...*);