aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/verifier/expr_varargs.good
blob: 4e71922f942c0e04e09877180fb407dada71073f (plain)
1
2
3
4
5
6
7
8
9
10
11
12

linkname "printf" int printf(char+> fmt, ...*);

() test()
{
    printf("hello\n");
    printf("hello %s\n", "world");
    printf("hello %s\n", "world" as char+>);
    printf("hello %d\n", 123); // FIXME uses smallest possible type! should generate an error!
    printf("hello %d\n", 123 as int);
    printf("hello %p\n", none as any^?);
}