new
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2000 17:15:58 +0000 (17:15 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2000 17:15:58 +0000 (17:15 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31612 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.old-deja/g++.pt/dynarray.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.warn/iomanip.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/dynarray.C b/gcc/testsuite/g++.old-deja/g++.pt/dynarray.C
new file mode 100644 (file)
index 0000000..9bdf0fc
--- /dev/null
@@ -0,0 +1,21 @@
+// Build don't link:
+// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
+
+inline const unsigned& f(unsigned const& a) {
+        return a;
+}
+
+template <class T>
+void
+g(const unsigned n)
+{
+        double D[f(n)];
+}
+
+template <class T,class U>
+void g(unsigned const int) { }
+
+int main()
+{
+        g<double>(18);
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C b/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C
new file mode 100644 (file)
index 0000000..2fea4ed
--- /dev/null
@@ -0,0 +1,12 @@
+// Bug: g++ wouldn't inline op<< because it was an explicit instantiation.
+// Origin: Jason Merrill <jason@cygnus.com>
+// Special g++ Options: -O -Winline
+// Build don't link:
+
+#include <iomanip.h>
+
+void
+f()
+{
+  cout << setw(3);
+}