new
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 1998 02:42:28 +0000 (02:42 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 1998 02:42:28 +0000 (02:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23763 138bc75d-0d04-0410-961f-82ee72b054a4

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>();
+}