]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/asm2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / asm2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/asm2.C b/gcc/testsuite/g++.old-deja/g++.pt/asm2.C
deleted file mode 100644 (file)
index 4f6bd0a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// Build don't link:
-// Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
-// Skip if not target: i?86-*-linux*
-
-typedef void (function_ptr)(int);
-
-void foo(int)
-{
-}
-
-template<function_ptr ptr> void doit(int i)
-{
-       __asm__("pushl %0\n\t"
-                 "call *%1\n\t"
-                 "popl %0"
-                 :
-                 : "a" (i), "b" (ptr));
-}
-
-void bar()
-{
-       doit<foo>(123);
-}