diff --git a/tests/mini/compile_bug-ldc-154.d b/tests/mini/compile_bug-ldc-154.d new file mode 100644 index 00000000..f3e7b551 --- /dev/null +++ b/tests/mini/compile_bug-ldc-154.d @@ -0,0 +1,9 @@ +template toInt(char[4] arg) +{ + const uint toInt = (cast(uint[]) arg)[0]; + } + + void main() + { + auto i = toInt!("abcd"); + }