aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/local1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/local1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/local1.C21
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/local1.C b/gcc/testsuite/g++.old-deja/g++.pt/local1.C
deleted file mode 100644
index 1b9e5155b52..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/local1.C
+++ /dev/null
@@ -1,21 +0,0 @@
-template <class STRUCT, class MEMBER> inline STRUCT *
-setback(MEMBER *bp, MEMBER STRUCT::*offset)
-{
- if(!bp) return 0;
- union { int i; MEMBER STRUCT::*of; } u;
- u.of = offset;
- return (STRUCT *) ((int) bp - u.i);
-}
-
-
-struct S
-{
- int i;
-};
-
-int main()
-{
- S s;
-
- S* sp = setback (&s.i, &S::i);
-}