1 // { dg-do assemble { target i?86-*-linux* x86_64-*-linux* } }
2 // { dg-require-effective-target ilp32 }
3 // We'd use ebx with -fpic/-fPIC, so skip.
4 // { dg-skip-if "" { *-*-* } { "-fpic" "-fPIC" } { "" } }
5 // Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
7 typedef void (function_ptr)(int);
13 template<function_ptr ptr> void doit(int i)
15 __asm__("pushl %0\n\t"
19 : "a" (i), "b" (ptr));