From: Tom Tromey Date: Wed, 23 Jan 2013 20:34:22 +0000 (+0000) Subject: * gdb.cp/converts.cc (main): Initialize 'a'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=152fcc9cee7fa247f827a1265393680478df5302;p=binutils-gdb.git * gdb.cp/converts.cc (main): Initialize 'a'. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3da0f065436..2da588c427e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2013-01-23 Tom Tromey + + * gdb.cp/converts.cc (main): Initialize 'a'. + 2013-01-23 Siva Chandra Reddy * testsuite/gdb.python/frame.exp: Add a test for diff --git a/gdb/testsuite/gdb.cp/converts.cc b/gdb/testsuite/gdb.cp/converts.cc index 309008f8247..ecf806481fd 100644 --- a/gdb/testsuite/gdb.cp/converts.cc +++ b/gdb/testsuite/gdb.cp/converts.cc @@ -53,7 +53,8 @@ int main() //foo0_3(bppp); // Pointer-to-pointer-to-pointer base. foo0_3((A***)bppp); // to ensure that the function is emitted. - char *a; // pointer to.. + char av = 'a'; + char *a = &av; // pointer to.. B *bp; foo1_1 (a); // ..pointer foo1_2 (a); // ..array