repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb83.C
blob
47cf5b88f041000461fa976c407ef467f94d8889
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
11
int
12
main()
13
{
14
int i = 5;
15
int j = 7;
16
test_swap(i, j);
17
return 0;
18
}
19
20
/* { dg-final { cleanup-coverage-files } } */