]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/typeid2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / typeid2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/typeid2.C b/gcc/testsuite/g++.old-deja/g++.jason/typeid2.C
deleted file mode 100644 (file)
index 64ecc5a..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// PRMS Id: 11596
-
-#include <typeinfo>
-extern "C" int printf (const char *, ...);
-
-class Chicken
-{
-public:
-  int eggs_per_day;
-};
-
-template <class Bird>
-class Flock
-{
-public:
-  Bird * flock_head;
-  int    head_count;
-  void print_self() {
-    printf ("A flock of %d %ss\n", head_count, typeid (Bird).name ());
-    printf ("A flock of %d %ss\n", head_count, typeid (*flock_head).name ());
-  }
-};
-
-int main()
-{
-  Flock<Chicken> x;
-  printf ("%s\n", typeid(x).name());
-  x.head_count = 42;
-  x.print_self();
-}