comparison tests/code/function_pointer_3.d @ 208:41ccd50e7cbc

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