diff tests/parser/function_pointer.d @ 187:08b6ce45b456

Changed the way static arrays are represented Now uses [3 x i32] rather than [3 x i32]*, and when using constants they are copied before use. Also dixed a test or two
author Anders Halager <halager@gmail.com>
date Fri, 25 Jul 2008 12:53:58 +0200
parents 2a1a635bd531
children
line wrap: on
line diff
--- a/tests/parser/function_pointer.d	Fri Jul 25 12:50:09 2008 +0200
+++ b/tests/parser/function_pointer.d	Fri Jul 25 12:53:58 2008 +0200
@@ -1,7 +1,9 @@
 
 int main()
 {
-    f = &&foo;
+    g = &foo;
+    f = &g;
+    return g(2);
 }
 
 int foo(int x)
@@ -10,3 +12,4 @@
 }
 
 int function(int x)* f;
+int function(int x) g;