From: Frederic Riss Date: Thu, 9 Nov 2006 09:20:17 +0000 (+0000) Subject: 2006-11-09 Christophe Lyon X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6760920914d7c97cf2f8e93b1fe6dd38f8f83fc0;p=binutils-gdb.git 2006-11-09 Christophe Lyon * gdb.base/constvars.c (main): Write to crass and crips, so that they are allocated by the compiler. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9ba407da96d..a039ea30d8b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-11-09 Christophe Lyon + + * gdb.base/constvars.c (main): Write to crass and crips, so that + they are allocated by the compiler. + 2006-10-27 Andreas Schwab * gdb.base/multi-forks.exp: Use "detach fork" instead of diff --git a/gdb/testsuite/gdb.base/constvars.c b/gdb/testsuite/gdb.base/constvars.c index 16025770e35..188edb8fcab 100644 --- a/gdb/testsuite/gdb.base/constvars.c +++ b/gdb/testsuite/gdb.base/constvars.c @@ -169,8 +169,8 @@ main (void) /* various structs with const members */ - struct crass { char * const ptr; } crass; - struct crisp { char * const *ptr; } crisp; + struct crass { char * const ptr; } crass = { lamprey }; + struct crisp { char * const *ptr; } crisp = { &lamprey }; /* misc. references */ /*