From 7988ecb8be4a43c4044e7892e6f57b0871c96f51 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Mon, 4 Aug 2008 03:40:08 +0200 Subject: [PATCH] added testcase for taking address of function as constant expr. --- tests/mini/compile_funcptr1.d | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/mini/compile_funcptr1.d diff --git a/tests/mini/compile_funcptr1.d b/tests/mini/compile_funcptr1.d new file mode 100644 index 00000000..f4c1a877 --- /dev/null +++ b/tests/mini/compile_funcptr1.d @@ -0,0 +1,4 @@ +module mini.compile_funcptr1; + +void a() { } +void function() b = &a;