mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
avoid compiler warning. * ld-srec/sr3.cc (class Foo): Likewise.
This commit is contained in:
24
ld/testsuite/ld-cdtest/cdtest-foo.h
Normal file
24
ld/testsuite/ld-cdtest/cdtest-foo.h
Normal file
@ -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 ();
|
||||||
|
};
|
Reference in New Issue
Block a user