summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cdtest/cdtest-foo.h
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-cdtest/cdtest-foo.h')
-rw-r--r--ld/testsuite/ld-cdtest/cdtest-foo.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.h b/ld/testsuite/ld-cdtest/cdtest-foo.h
new file mode 100644
index 00000000000..0afe52a829f
--- /dev/null
+++ b/ld/testsuite/ld-cdtest/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;
+ static const int 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 ();
+};