* ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
authorIan Lance Taylor <ian@airs.com>
Wed, 12 Nov 1997 19:20:11 +0000 (19:20 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 12 Nov 1997 19:20:11 +0000 (19:20 +0000)
avoid compiler warning.
* ld-srec/sr3.cc (class Foo): Likewise.

ld/testsuite/ld-cdtest/cdtest-foo.h [new file with mode: 0644]

diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.h b/ld/testsuite/ld-cdtest/cdtest-foo.h
new file mode 100644 (file)
index 0000000..9805e38
--- /dev/null
@@ -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 ();
+};