summaryrefslogblamecommitdiff
path: root/tests/exec/passing.cpp
blob: 3a2fbf2e513e430d6fb435c71677224b69111fc8 (plain) (tree)
1
2
3
4
5
6
7
8
9







                   
                                   
          
                                   

 
#include <iostream>

void incr(int &y) {
  y = y+1;
}

int main() {
  int x = 5;
  std::cout << "x = " << x << "\n";
  incr(x);
  std::cout << "x = " << x << "\n";
}