changeset 178:5f7e2f2344a5

Added another testcase.
author Anders Johnsen <skabet@gmail.com>
date Thu, 24 Jul 2008 23:36:38 +0200
parents 491b5fc4782a
children 2a1a635bd531
files tests/code/function_pointer_1.d
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/code/function_pointer_1.d	Thu Jul 24 23:36:38 2008 +0200
@@ -0,0 +1,15 @@
+
+struct A
+{
+    int foo(int a)
+    {
+        return a;
+    }
+    int x;
+}
+
+void main()
+{
+    A a;
+    int* d = &a.x;
+}