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

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

() test()
{

    /* ERRORS not possible to determine type */
    printf("hello %s\n", none);
    printf("hello %s\n", [123,]);
    printf("hello %s\n", (123,));
    
    //printf("hello %d\n", 123); // FIXME uses smallest possible type! should generate an error!
}