view tests/code/function_pointer_2.d @ 188:b3e0729c8524

Extra test
author Anders Halager <halager@gmail.com>
date Fri, 25 Jul 2008 12:55:38 +0200
parents 08b6ce45b456
children
line wrap: on
line source

//fail
int main()
{
    int function(int) f = &foo;
    return f();
}

int foo(int x)
{
    return x*x*x;
}