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
Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
asm1.C
blob
24cf653ceb456b45f859a4f1a28f26ec110d74d0
1
// { dg-do assemble { target i?86-*-linux* x86_64-*-linux* } }
2
// Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
3
4
template<int i> int foo(int v)
5
{
6
__asm__ __volatile__("addl %1, %0" : "=a" (v) : "b" (i));
7
8
return v;
9
}
10
11
int bar(int i)
12
{
13
return foo<123>(i);
14
}
15