]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/trait_loc_err.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / trait_loc_err.d
CommitLineData
c5e94699
IB
1/*
2TEST_OUTPUT:
3---
4fail_compilation/trait_loc_err.d(13): Error: can only get the location of a symbol, not `trait_loc_err`
5fee5ec3 5fail_compilation/trait_loc_err.d(14): Error: can only get the location of a symbol, not `stdc`
c5e94699
IB
6---
7*/
8module trait_loc_err;
5fee5ec3 9import core.stdc.stdio;
c5e94699
IB
10
11void main()
12{
13 __traits(getLocation, __traits(parent, main));
5fee5ec3 14 __traits(getLocation, __traits(parent, core.stdc.stdio));
c5e94699 15}