Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test11047.d(11): Error: value of `x` is not known at compile time
5 fail_compilation/test11047.d(11): Error: value of `x` is not known at compile time
6 ---
7 */
8 // https://issues.dlang.org/show_bug.cgi?id=11047
9
10 int x;
11 @(++x, ++x) void foo(){}
12
13 @safe pure void test()
14 {
15 __traits(getAttributes, foo);
16 __traits(getAttributes, foo)[0];
17 }