aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-07-21 09:17:26 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-07-21 09:17:26 +0000
commitf4653d92782e80a2ebceae16e81a2850452aa0c3 (patch)
treed2a5062bad499cae6470bf8365111bcbe0f0af30 /gcc
parent06dff162a868fd624d4ff20a1d2a24a3bfdc6323 (diff)
downloadgcc-f4653d92782e80a2ebceae16e81a2850452aa0c3.zip
gcc-f4653d92782e80a2ebceae16e81a2850452aa0c3.tar.gz
gcc-f4653d92782e80a2ebceae16e81a2850452aa0c3.tar.bz2
Remove old-abi tests.
* g++.old-deja/g++.mike/p11116.C: Remove. * g++.old-deja/g++.eh/catchptr1.C: Remove old-abi ifdef. From-SVN: r44226
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/catchptr1.C8
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p11116.C29
3 files changed, 6 insertions, 37 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 407d875..0a35d48 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
+
+ Remove old-abi tests.
+ * g++.old-deja/g++.mike/p11116.C: Remove.
+ * g++.old-deja/g++.eh/catchptr1.C: Remove old-abi ifdef.
+
2001-07-20 David Billinghurst <David.Billinghurst@riotinto.org>
* g77.f-torture/compile/pr3743.f: New test
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/catchptr1.C b/gcc/testsuite/g++.old-deja/g++.eh/catchptr1.C
index c88b36a..723b437 100644
--- a/gcc/testsuite/g++.old-deja/g++.eh/catchptr1.C
+++ b/gcc/testsuite/g++.old-deja/g++.eh/catchptr1.C
@@ -184,8 +184,6 @@ int test7 ()
int test8 ()
{
-#if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100
-// old-abi fails this test, by segfaulting in the runtime.
try
{
throw (B **)0;
@@ -203,14 +201,10 @@ int test8 ()
return 2;
}
return -1;
-#endif
- return 0;
}
int test9 ()
{
-#if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100
-// old-abi fails this test, by segfaulting in the runtime.
try
{
throw (B **)0;
@@ -228,8 +222,6 @@ int test9 ()
return 2;
}
return -1;
-#endif
- return 0;
}
static int (*tests[])() =
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p11116.C b/gcc/testsuite/g++.old-deja/g++.mike/p11116.C
deleted file mode 100644
index ed670a1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.mike/p11116.C
+++ /dev/null
@@ -1,29 +0,0 @@
-// Build don't link:
-// Special g++ Options: -Wno-pmf-conversions
-// prms-id: 11116
-
-#if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100
-// This test tests the rather strange property afforded one by G++ to
-// peek inside a pointer-to-member, as if it were a structure. We
-// probably shouldn't allow that. In any case, under the new ABI,
-// the fields don't have the same names.
-#else
-class Bar {
-public:
- int f(int a) { val = a; return val; }
-private:
- int val;
-};
-
-typedef int (Bar::*BarPtr)(int);
-
-void foo() {
- int a;
- int (Bar::*bp)(int) = &Bar::f;
- Bar bar;
- int (*p)(void *, int);
-
- p = (int (*)(void*,int))((void (*)())((bp).__pfn_or_delta2.__pfn));
- a = (*p)(&bar, 4);
-}
-#endif