aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2002-03-13 17:19:31 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2002-03-13 17:19:31 +0000
commit440d0518b32bbe629723af8ed5b91209713ce6f5 (patch)
treec4b7ab48e0f9331023282630296427b52f3339f0 /gcc
parent049e687916f964f8b933d6f7491d61d99d6abd1f (diff)
downloadgcc-440d0518b32bbe629723af8ed5b91209713ce6f5.zip
gcc-440d0518b32bbe629723af8ed5b91209713ce6f5.tar.gz
gcc-440d0518b32bbe629723af8ed5b91209713ce6f5.tar.bz2
* g++.dg/abi/mangle6.C: New test.
From-SVN: r50744
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/abi/mangle6.C18
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6dbf636..3b18306a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2002-02-13 Richard Sandiford <rsandifo@redhat.com>
+
+ * g++.dg/abi/mangle6.C: New test.
+
2002-03-13 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20020309-2.c: New test.
diff --git a/gcc/testsuite/g++.dg/abi/mangle6.C b/gcc/testsuite/g++.dg/abi/mangle6.C
new file mode 100644
index 0000000..e17ee7e65
--- /dev/null
+++ b/gcc/testsuite/g++.dg/abi/mangle6.C
@@ -0,0 +1,18 @@
+/* Check that __int128 types are mangled. */
+/* { dg-do compile { target mips64*-*-* } } */
+
+typedef int int128 __attribute__ ((mode(TI)));
+typedef unsigned int uint128 __attribute__ ((mode(TI)));
+
+struct S
+{
+ int128 i;
+ int128 func1 (int128) const { return i; }
+ uint128 func2 (uint128) const { return i; }
+};
+
+int128 (S::*ptr1) (int128) const = &S::func1;
+uint128 (S::*ptr2) (uint128) const = &S::func2;
+
+/* { dg-final { scan-assembler _ZNK1S5func1En } } */
+/* { dg-final { scan-assembler _ZNK1S5func2Eo } } */