]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/t39.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / t39.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t39.C b/gcc/testsuite/g++.old-deja/g++.pt/t39.C
deleted file mode 100644 (file)
index d12ef81..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-extern "C" int printf (const char *, ...);
-
-template <class T>
-struct frob {
-  T *ptr;
-  void print ();
-  frob (T* init) { ptr = init; }
-};
-
-template <class T>
-void frob<T>::print () {
-  printf ("this = %08x\n", this);
-  printf (" ptr = %08x\n", ptr);
-  printf (" values = %x %x %x ...\n", ptr[0], ptr[1], ptr[2]);
-}
-
-  static int x[10];
-  frob<char> fc ("hello");
-  frob<int> fi (x);
-
-int main () {
-  fc.print ();
-  fi.print ();
-  return 0;
-}