aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb83.C
blob: 0f42cf4afa7a126f462f0a695645bb140febaa58 (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
test_swap(int& x, int& y) throw()
{
  int tmp = x;
  x = y;
  y = tmp;
}

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