aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-11-22 21:42:28 -0500
committerJason Merrill <jason@gcc.gnu.org>1998-11-22 21:42:28 -0500
commit693331300baf2f3457029e089ae91c5e041041a1 (patch)
tree9afe2e6ee3f44c5ec364923a7553e6caf5b55d64 /gcc
parent72a931432542edeb7e222774af95942663e66ff2 (diff)
downloadgcc-693331300baf2f3457029e089ae91c5e041041a1.zip
gcc-693331300baf2f3457029e089ae91c5e041041a1.tar.gz
gcc-693331300baf2f3457029e089ae91c5e041041a1.tar.bz2
new
From-SVN: r23763
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C16
1 files changed, 16 insertions, 0 deletions
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
index 0000000..61a2fb8
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C
@@ -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>();
+}