#include <iostream>using namespace std; void func();void foo(void()) {cout << __PRETTY_FUNCTION__;} int main() { foo(func);}
Standard input is empty
void foo(void (*)())
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!