aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb83.C
blob: 7121e140078d543dee55be3c1be37d9155298338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Skip if not native
// Special g++ Options: -fprofile-arcs -ftest-coverage
void
swap(int& x, int& y) throw()
{
  int tmp = x;
  x = y;
  y = tmp;
}

main()
{
  int i = 5;
  int j = 7;
  swap(i, j);
}