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
Enable tests on x86-64.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
asm1.C
1
// Build don't link:
2
// Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
3
// Skip if not target: i?86-*-linux* x86_64-*-linux
4
5
template<int i> int foo(int v)
6
{
7
__asm__ __volatile__("addl %1, %0" : "=a" (v) : "b" (i));
8
9
return v;
10
}
11
12
int bar(int i)
13
{
14
return foo<123>(i);
15
}
16