summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp11.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp11.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/memtemp11.C27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp11.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp11.C
deleted file mode 100644
index a0d681dc199..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/memtemp11.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// Build don't run:
-// GROUPS passed templates membertemplates
-extern "C" int printf(const char*, ...);
-
-struct S
-{
- template <class U>
- S(U u, int i) {}
-
- template <class T>
- T foo(T t)
- {
- printf("Hello, world.\n");
- return t;
- }
-};
-
-
-int main()
-{
- S s(3, 4);
- int i = s.foo(3);
- s.foo("hello");
- s.foo(s);
-
- S s2("hello", 5);
-}