summaryrefslogblamecommitdiff
path: root/tests/exec/address3.cpp
blob: 3917dc1ae1e9f2626fd6e7ea93cdded91a331d4b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                   
#include <iostream>

void f(int *y) {
  *y = *y + 1;
}

int main() {
  int x = 41;
  std::cout << "x = " << x << "\n";
  f(&x);
  std::cout << "x = " << x << "\n";
  f(&x);
  std::cout << "x = " << x << "\n";
}