aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/converts.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-23 20:34:22 +0000
committerTom Tromey <tromey@redhat.com>2013-01-23 20:34:22 +0000
commit152fcc9cee7fa247f827a1265393680478df5302 (patch)
treee6a4502cef2920d5ba4ac1c05478d7cf3d615400 /gdb/testsuite/gdb.cp/converts.cc
parentb1ae631a1eef7fed67ac11105007887e23f855f7 (diff)
downloadfsf-binutils-gdb-152fcc9cee7fa247f827a1265393680478df5302.zip
fsf-binutils-gdb-152fcc9cee7fa247f827a1265393680478df5302.tar.gz
fsf-binutils-gdb-152fcc9cee7fa247f827a1265393680478df5302.tar.bz2
* gdb.cp/converts.cc (main): Initialize 'a'.
Diffstat (limited to 'gdb/testsuite/gdb.cp/converts.cc')
-rw-r--r--gdb/testsuite/gdb.cp/converts.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/converts.cc b/gdb/testsuite/gdb.cp/converts.cc
index 309008f..ecf8064 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