comparison tests/parser/function_pointer.d @ 208:41ccd50e7cbc

Added missing tests
author Anders Johnsen <skabet@gmail.com>
date Tue, 12 Aug 2008 18:21:06 +0200
parents
children
comparison
equal deleted inserted replaced
207:e0551773a005 208:41ccd50e7cbc
1
2 int main()
3 {
4 g = &foo;
5 f = &g;
6 return g(2);
7 }
8
9 int foo(int x)
10 {
11 return x;
12 }
13
14 int function(int x)* f;
15 int function(int x) g;