]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 17 Oct 2002 22:37:49 +0000 (22:37 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 17 Oct 2002 22:37:49 +0000 (22:37 +0000)
'gcc-3_2-branch'.

From-SVN: r58263

gcc/testsuite/g++.dg/abi/mangle14.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/mangle17.C [new file with mode: 0644]
gcc/testsuite/g++.dg/inherit/using3.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/abi/mangle14.C b/gcc/testsuite/g++.dg/abi/mangle14.C
new file mode 100644 (file)
index 0000000..8e2bfdd
--- /dev/null
@@ -0,0 +1,12 @@
+// { dg-do compile }
+// { dg-options "-Wabi" }
+
+struct A {
+  template <typename T> int f ();
+};
+
+typedef int (A::*P)();
+
+template <P> struct S {};
+
+void g (S<&A::f<int> >) {} // { dg-warning "mangle" }
diff --git a/gcc/testsuite/g++.dg/abi/mangle17.C b/gcc/testsuite/g++.dg/abi/mangle17.C
new file mode 100644 (file)
index 0000000..1da6dea
--- /dev/null
@@ -0,0 +1,11 @@
+// { dg-options "-Wabi" }
+
+enum E { e = 3 };
+
+template <int I> struct S {};
+
+template <int I> void f (S<e + int (3.7)>) {}
+template void f<7>(S<e + int (3.7)>);  // { dg-warning "mangle" }
+
+template <int I> void g (S<e + int (3.7)>) {}
+template void g<7>(S<e + int (3.7)>); // { dg-warning "mangle" }
diff --git a/gcc/testsuite/g++.dg/inherit/using3.C b/gcc/testsuite/g++.dg/inherit/using3.C
new file mode 100644 (file)
index 0000000..d2acf80
--- /dev/null
@@ -0,0 +1,19 @@
+class A
+{
+public:
+    typedef int T;
+    int a;
+};
+
+class B : virtual private A
+{
+};
+
+class C : virtual private A, public B
+{
+public:
+    using A::a;
+    using A::T;
+};
+
+C::T x;