From df1859da76a7db6d3f1ca5300f83e814128b876d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 12 Nov 1997 19:20:11 +0000 Subject: [PATCH] * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to avoid compiler warning. * ld-srec/sr3.cc (class Foo): Likewise. --- ld/testsuite/ld-cdtest/cdtest-foo.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ld/testsuite/ld-cdtest/cdtest-foo.h 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 (); +}; -- 2.7.4