Daily bump.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail15414.d
blobed576b57fe665f851bac90a5fd42c409e01353b5
1 // https://issues.dlang.org/show_bug.cgi?id=15414
3 // REQUIRED_ARGS: -de
5 /*
6 TEST_OUTPUT:
7 ---
8 fail_compilation/fail15414.d(20): Deprecation: `__traits(getAttributes)` may only be used for individual functions, not the overload set `fun`
9 fail_compilation/fail15414.d(20): the result of `__traits(getOverloads)` may be used to select the desired function to extract attributes from
10 ---
13 @("gigi")
14 void fun() {}
15 @("mimi")
16 void fun(int) {}
18 void main()
20 auto t = __traits(getAttributes, fun);