d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail17421.d
blobf18193798de53af53c266a9b36f075d259cae5f3
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/fail17421.d(14): Error: argument to `__traits(getFunctionVariadicStyle, 1)` is not a function
4 fail_compilation/fail17421.d(14): while evaluating: `static assert(__traits(getFunctionVariadicStyle, 1) == "none")`
5 fail_compilation/fail17421.d(15): Error: argument to `__traits(getFunctionVariadicStyle, int*)` is not a function
6 fail_compilation/fail17421.d(15): while evaluating: `static assert(__traits(getFunctionVariadicStyle, int*) == "none")`
7 ---
8 */
10 // https://issues.dlang.org/show_bug.cgi?id=17421
12 alias int* x;
14 static assert(__traits(getFunctionVariadicStyle, 1) == "none");
15 static assert(__traits(getFunctionVariadicStyle, x) == "none");