| 1 |
// REQUIRED_ARGS: -o- |
| 2 |
|
| 3 |
module pkg.test9554; |
| 4 |
alias mod = pkg.test9554; |
| 5 |
|
| 6 |
template Test(alias name) { enum Test = name; } |
| 7 |
void fun() {} |
| 8 |
|
| 9 |
static assert(fun.stringof == Test!(fun.stringof)); |
| 10 |
static assert(fun.stringof == "fun()"); |
| 11 |
static assert(fun.mangleof == Test!(fun.mangleof)); |
| 12 |
static assert(fun.mangleof == "_D3pkg8test95543funFZv"); |
| 13 |
|
| 14 |
static assert(mod.stringof == Test!(mod.stringof)); |
| 15 |
static assert(mod.stringof == "module test9554"); |
| 16 |
static assert(mod.mangleof == Test!(mod.mangleof)); |
| 17 |
static assert(mod.mangleof == "3pkg8test9554"); |
| 18 |
|
| 19 |
static assert(pkg.stringof == Test!(pkg.stringof)); |
| 20 |
static assert(pkg.stringof == "package pkg"); |
| 21 |
static assert(pkg.mangleof == Test!(pkg.mangleof)); |
| 22 |
static assert(pkg.mangleof == "3pkg"); |