]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.robertl/eb112.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb112.C
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb112.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb112.C
deleted file mode 100644 (file)
index 3233287..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link: 
-template <class STRUCT, class MEMBER> inline STRUCT *
-setback(MEMBER *bp, MEMBER STRUCT::*offset)
-{
-        // The implementation of this function may be platform dependend
-        if(!bp) return 0; // NULL pointers remain NULL
-        union { int i; MEMBER STRUCT::*of; } u; // Switch types. Casting won't
-+work.
-        u.of = offset;
-        return (STRUCT *) ((int) bp - u.i);
-}
-