gcc/testsuite/gdc.test/compilable/test23948.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=23948 |
| 2 | |
| 3 | void foo1(const(char)* fun = __FILE__)() { |
| 4 | |
| 5 | } |
| 6 | |
| 7 | void foo2(const(char)* fun = __FILE_FULL_PATH__)() { |
| 8 | |
| 9 | } |
| 10 | |
| 11 | void foo3(const(char)* fun = __MODULE__)() { |
| 12 | |
| 13 | } |
| 14 | |
| 15 | void foo4(const(char)* fun = __FUNCTION__)() { |
| 16 | |
| 17 | } |
| 18 | |
| 19 | void foo5(const(char)* fun = __PRETTY_FUNCTION__)() { |
| 20 | |
| 21 | } |
| 22 | |
| 23 | void main() { |
| 24 | foo1(); |
| 25 | foo2(); |
| 26 | foo3(); |
| 27 | foo4(); |
| 28 | foo5(); |
| 29 | } |