From: Ian Lance Taylor Date: Wed, 12 Nov 1997 19:20:11 +0000 (+0000) Subject: * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df1859da76a7db6d3f1ca5300f83e814128b876d;p=binutils-gdb.git * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to avoid compiler warning. * ld-srec/sr3.cc (class Foo): Likewise. --- diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.h b/ld/testsuite/ld-cdtest/cdtest-foo.h new file mode 100644 index 00000000000..9805e38b70d --- /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 (); +};