Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test20919.d

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test20919.d(12): Error: `__traits(getAttributes, int a)` does not give a valid type
4 ---
5 */
6 // https://issues.dlang.org/show_bug.cgi?id=20919
7
8 void foo(int a) {}
9
10 static if (is(typeof(foo) params == __parameters))
11 {
12 __traits(getAttributes, params) a;
13 }