From ea00a120e9bafd5093a250b58b574c1b1bbd4aa6 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Sun, 10 May 2009 14:37:30 +0200 Subject: [PATCH] Added testcase for #288 . --- tests/mini/compile_ctfe_dup.d | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/mini/compile_ctfe_dup.d diff --git a/tests/mini/compile_ctfe_dup.d b/tests/mini/compile_ctfe_dup.d new file mode 100644 index 00000000..f4a86a37 --- /dev/null +++ b/tests/mini/compile_ctfe_dup.d @@ -0,0 +1,4 @@ +char[] foobar() { + return "foobar".dup; +} +const char[] foo = foobar();