* gdb.cp/converts.cc (main): Initialize 'a'.
authorTom Tromey <tromey@redhat.com>
Wed, 23 Jan 2013 20:34:22 +0000 (20:34 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 23 Jan 2013 20:34:22 +0000 (20:34 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/converts.cc

index 3da0f065436df9ff938f933cab62bd9f0a18a270..2da588c427e2b83073aba65ddb450472f750eb80 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-23  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.cp/converts.cc (main): Initialize 'a'.
+
 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
 
        * testsuite/gdb.python/frame.exp: Add a test for
index 309008f8247fc582f6b3e80ae4d68495d327d34c..ecf806481fdffc6abb19180fa200a9b5b433494c 100644 (file)
@@ -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