(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
test11047.d
/*
TEST_OUTPUT:
---
fail_compilation/test11047.d(11): Error: value of `x` is not known at compile time
fail_compilation/test11047.d(11): Error: value of `x` is not known at compile time
---
*/
// https://issues.dlang.org/show_bug.cgi?id=11047

int x;
@(++x, ++x) void foo(){}

@safe pure void test()
{
    __traits(getAttributes, foo);
    __traits(getAttributes, foo)[0];
}