projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfcbe03
)
* ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
author
Ian Lance Taylor
<ian@airs.com>
Wed, 12 Nov 1997 19:20:11 +0000
(19:20 +0000)
committer
Ian 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]
patch
|
blob
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
+++ 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 ();
+};