aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-11-12 19:20:11 +0000
committerIan Lance Taylor <ian@airs.com>1997-11-12 19:20:11 +0000
commitdf1859da76a7db6d3f1ca5300f83e814128b876d (patch)
tree9af122ed986a3509d3f0532765e0e45503aa627e /ld
parentcfcbe03ff7638bb1cb969a25b29807a7caf373ae (diff)
downloadgdb-df1859da76a7db6d3f1ca5300f83e814128b876d.zip
gdb-df1859da76a7db6d3f1ca5300f83e814128b876d.tar.gz
gdb-df1859da76a7db6d3f1ca5300f83e814128b876d.tar.bz2
* ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
avoid compiler warning. * ld-srec/sr3.cc (class Foo): Likewise.
Diffstat (limited to 'ld')
-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 0000000..9805e38
--- /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;
+ 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 ();
+};