aboutsummaryrefslogtreecommitdiff
path: root/ld/cdtest-foo.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-08-05 04:15:37 +0000
committerPer Bothner <per@bothner.com>1992-08-05 04:15:37 +0000
commit917bffa7f6dd3a04195a790595a2088683386227 (patch)
treefb5e23a8c1dcef367ae67cc63fed7ea9b45fe0f2 /ld/cdtest-foo.h
parentc7a535938ed0ac4a601897462e0012ed7b2430e1 (diff)
downloadgdb-917bffa7f6dd3a04195a790595a2088683386227.zip
gdb-917bffa7f6dd3a04195a790595a2088683386227.tar.gz
gdb-917bffa7f6dd3a04195a790595a2088683386227.tar.bz2
* cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
cdtest.exp: A test program (copied from libg++/test-install) that tests that constructor and destructors are handled corrrectly.
Diffstat (limited to 'ld/cdtest-foo.h')
-rw-r--r--ld/cdtest-foo.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/cdtest-foo.h b/ld/cdtest-foo.h
new file mode 100644
index 0000000..0ba2d37
--- /dev/null
+++ b/ld/cdtest-foo.h
@@ -0,0 +1,24 @@
+// Class Foo
+
+#pragma interface
+
+#define FOOLISH_NUMBER -4711
+
+#ifndef FOO_MSG_LEN
+#define FOO_MSG_LEN 80
+#endif
+
+class Foo {
+ static int foos;
+ int i;
+ const len = FOO_MSG_LEN;
+ char message[len];
+public:
+ static void init_foo ();
+ static int nb_foos() { return foos; }
+ Foo();
+ Foo( char* message);
+ Foo(const Foo&);
+ Foo & operator= (const Foo&);
+ ~Foo ();
+};