Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/trait_loc_err.d(14): Error: can only get the location of a symbol, not `trait_loc_err`
5 fail_compilation/trait_loc_err.d(15): Error: can only get the location of a symbol, not `core.stdc`
6 fail_compilation/trait_loc_err.d(16): Error: can only get the location of a symbol, not `core.stdc.stdio`
7 ---
8 */
9 module trait_loc_err;
10 import core.stdc.stdio;
11
12 void main()
13 {
14 __traits(getLocation, __traits(parent, main));
15 __traits(getLocation, __traits(parent, core.stdc.stdio));
16 __traits(getLocation, core.stdc.stdio);
17 }