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