aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb112.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.robertl/eb112.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb112.C12
1 files changed, 0 insertions, 12 deletions
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
index 3233287ff10..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb112.C
+++ /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);
-}
-