dmd/compiler/test/compilable/test19688.d
Teodor Dutu 1db1ba87fd
Translate _d_arraycatnTX to a template (#14550)
This brings the following changes:
- Improves the existing template `_d_arraycatnTX`, to now concatenates
both arrays and single elements
- Changes the lowerings to `_d_arraycatT` to use the new template
- Moves the lowering logic to `_d_arraycatnTX` to expressionsem.d
- Adds a new field to `CatExp` called `lowering` to store the template
  lowering
- Removes the old non-template `_d_arraycatnTX` and `_d_arraycatT` hooks
- Moves `test19688.d` from `runnable/` to `compilable/` until
https://issues.dlang.org/show_bug.cgi?id=23408 is fixed

Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
2023-04-28 10:33:48 +03:00

13 lines
180 B
D

/* TEST_OUTUT:
---
---
*/
void test(string s = __FUNCTION__ ~ __MODULE__ ~ __FUNCTION__)
{
assert(s == "test19688.maintest19688test19688.main");
}
void main()
{
test();
}