fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. using f = auto (int) -> int;
  5. using ff = f*;
  6.  
  7. int foo(int a) {return 42;}
  8.  
  9. int main() {
  10. f* x = foo;
  11. ff y = foo;
  12.  
  13. int z = x(30);
  14. int w = y(40);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty