fork(1) download
  1. // NOTE: This will compile with -std=c++11 option
  2.  
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. void foo(int &&y) {
  7. cout << y << endl;
  8. }
  9.  
  10. int main() {
  11.  
  12. foo(42);
  13. return 0;
  14. }
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
42