aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/typeid2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/typeid2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/typeid2.C30
1 files changed, 0 insertions, 30 deletions
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
index 64ecc5a17f5..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.jason/typeid2.C
+++ /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();
-}