* ld-cdtest/cdtest-foo.cc (Foo::Foo): Add const to char *.
* ld-cdtest/cdtest-foo.h (Foo::Foo): Likewise.
* ld-srec/sr3.cc (Foo::Foo): Likewise.
+2006-05-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-cdtest/cdtest-foo.cc (Foo::Foo): Add const to char *.
+ * ld-cdtest/cdtest-foo.h (Foo::Foo): Likewise.
+ * ld-srec/sr3.cc (Foo::Foo): Likewise.
+
2006-05-02 Paul Brook <paul@codesourcery.com>
* ld-arm/arm-elf.exp: Add thumb-rel32.
#endif
}
-Foo::Foo (char* msg)
+Foo::Foo (const char* msg)
{
i = ++foos;
strncpy( message, msg, len);
static void init_foo ();
static int nb_foos() { return foos; }
Foo();
- Foo( char* message);
+ Foo(const char* message);
Foo(const Foo&);
Foo & operator= (const Foo&);
~Foo ();
static void init_foo ();
static int nb_foos() { return foos; }
Foo();
- Foo( char* message);
+ Foo(const char* message);
Foo(const Foo&);
Foo & operator= (const Foo&);
~Foo ();
i = ++foos;
}
-Foo::Foo (char*)
+Foo::Foo (const char*)
{
i = ++foos;
}