OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb83.C
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
main()
12
{
13
int i = 5;
14
int j = 7;
15
test_swap(i, j);
16
}
17
18
/* { dg-final { cleanup-coverage-files } } */