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