2006-11-09 Christophe Lyon <christophe.lyon@st.com>
authorFrederic Riss <frederic.riss@st.com>
Thu, 9 Nov 2006 09:20:17 +0000 (09:20 +0000)
committerFrederic Riss <frederic.riss@st.com>
Thu, 9 Nov 2006 09:20:17 +0000 (09:20 +0000)
* gdb.base/constvars.c (main): Write to crass and crips, so that
they are allocated by the compiler.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/constvars.c

index 9ba407d..a039ea3 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-09  Christophe Lyon  <christophe.lyon@st.com>
+
+       * gdb.base/constvars.c (main): Write to crass and crips, so that
+       they are allocated by the compiler.
+
 2006-10-27  Andreas Schwab  <schwab@suse.de>
 
        * gdb.base/multi-forks.exp: Use "detach fork" instead of
index 1602577..188edb8 100644 (file)
@@ -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 */
   /*