new
authorJason Merrill <jason@gcc.gnu.org>
Mon, 23 Nov 1998 02:42:28 +0000 (21:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Nov 1998 02:42:28 +0000 (21:42 -0500)
From-SVN: r23763

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C
new file mode 100644 (file)
index 0000000..61a2fb8
--- /dev/null
@@ -0,0 +1,16 @@
+// Build don't link:
+
+template<typename T> T baz() { return 0; }
+
+struct foo {
+       template<typename T> static T staticbar() { return 0; }
+       template<typename T> T bar() { return 0; }
+};
+
+void f()
+{
+       foo t;
+       int i = baz<int>();
+       int j = foo::staticbar<int>();
+       int k = t.bar<int>();
+}