aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cdtest
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-08-17 07:56:29 +0000
committerIan Lance Taylor <ian@airs.com>1999-08-17 07:56:29 +0000
commit5be8a006bba3671a11ad4971e939ffd350458fe9 (patch)
treeaa47146667db94da725163a13438a765eee4985b /ld/testsuite/ld-cdtest
parent1396cd2d7f2fa27fb36bcafffb8fbcd214454cb1 (diff)
downloadgdb-5be8a006bba3671a11ad4971e939ffd350458fe9.zip
gdb-5be8a006bba3671a11ad4971e939ffd350458fe9.tar.gz
gdb-5be8a006bba3671a11ad4971e939ffd350458fe9.tar.bz2
1999-08-17 H.J. Lu <hjl@gnu.org>
* ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.
Diffstat (limited to 'ld/testsuite/ld-cdtest')
-rw-r--r--ld/testsuite/ld-cdtest/cdtest-foo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.cc b/ld/testsuite/ld-cdtest/cdtest-foo.cc
index 615e33c..c7d41a9 100644
--- a/ld/testsuite/ld-cdtest/cdtest-foo.cc
+++ b/ld/testsuite/ld-cdtest/cdtest-foo.cc
@@ -22,7 +22,7 @@ int Foo::foos = 0;
void Foo::init_foo ()
{
- printf ("BROKENLY calling Foo::init_foo from __init_start; size_of(Foo) = %d\n", sizeof(Foo));
+ printf ("BROKENLY calling Foo::init_foo from __init_start; size_of(Foo) = %ld\n", (long) sizeof(Foo));
foos = FOOLISH_NUMBER;
}