mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
17 lines
375 B
D
17 lines
375 B
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];
|
|
}
|