diff tests/parser/function_pointer.d @ 176:dc9bf56b7ace

Can now use & as a unary operator and take an AddressOf
author Anders Johnsen <skabet@gmail.com>
date Thu, 24 Jul 2008 23:03:18 +0200
parents 01c2c49775ef
children 2a1a635bd531
line wrap: on
line diff
--- a/tests/parser/function_pointer.d	Thu Jul 24 21:12:12 2008 +0200
+++ b/tests/parser/function_pointer.d	Thu Jul 24 23:03:18 2008 +0200
@@ -1,6 +1,12 @@
 
 int main()
 {
+    f = &foo;
+}
+
+int foo(int x)
+{
+    return x;
 }
 
 int function(int x) f;