Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.robertl/eb83.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do run { target native } } |
2 // { dg-options "-fprofile-arcs -ftest-coverage" } | |
3 void | |
4 test_swap(int& x, int& y) throw() | |
5 { | |
6 int tmp = x; | |
7 x = y; | |
8 y = tmp; | |
9 } | |
10 | |
131 | 11 int |
111 | 12 main() |
13 { | |
14 int i = 5; | |
15 int j = 7; | |
16 test_swap(i, j); | |
131 | 17 return 0; |
111 | 18 } |
19 | |
20 /* { dg-final { cleanup-coverage-files } } */ |