1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// { dg-do run { target native } } // { dg-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); } /* { dg-final { cleanup-coverage-files } } */