aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-02-27 21:30:14 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-02-27 21:30:14 +0000
commit43931371e2321b6c50c3e0b9095d46606ec48ce1 (patch)
treeecf26ed1a9acda4f92b3056d2d9f9d27742b6038
parent9fe94fd39724a0eeb0bec9f08fe7fe9d5eeffa7c (diff)
downloadgcc-43931371e2321b6c50c3e0b9095d46606ec48ce1.zip
gcc-43931371e2321b6c50c3e0b9095d46606ec48ce1.tar.gz
gcc-43931371e2321b6c50c3e0b9095d46606ec48ce1.tar.bz2
p11116.C
From-SVN: r32224
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p11116.C7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p11116.C b/gcc/testsuite/g++.old-deja/g++.mike/p11116.C
index 9beff46..ed670a1 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p11116.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p11116.C
@@ -2,6 +2,12 @@
// 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; }
@@ -20,3 +26,4 @@ void foo() {
p = (int (*)(void*,int))((void (*)())((bp).__pfn_or_delta2.__pfn));
a = (*p)(&bar, 4);
}
+#endif