]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.pt/asm2.C
pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned...
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / asm2.C
CommitLineData
3ebc5c52
MM
1// Build don't link:
2// Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
3// Skip if not target: i?86-*-linux*
4
5typedef void (function_ptr)(int);
6
7void foo(int)
8{
9}
10
11template<function_ptr ptr> void doit(int i)
12{
13 __asm__("pushl %0\n\t"
14 "call *%1\n\t"
15 "popl %0"
16 :
17 : "a" (i), "b" (ptr));
18}
19
20void bar()
21{
22 doit<foo>(123);
23}
This page took 0.702889 seconds and 5 git commands to generate.