summaryrefslogblamecommitdiff
path: root/tests/exec/passing.cpp
blob: 6354fa50ae15c9c58b8cd94a60ec26e6eacb8f4e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                        
#include <iostream>

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

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