Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / pretty-print.c
index 9e241f8c678016da4b0b7e05d8dd7c84f784035e..11d3e559566d79c3cdbd98ec254fa2c6fe215c11 100644 (file)
@@ -1,6 +1,6 @@
 /* This testcase is part of GDB, the GNU debugger.
 
-   Copyright 2019 Free Software Foundation, Inc.
+   Copyright 2019-2020 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -23,16 +23,18 @@ struct s1_t
   struct
   {
     union {
-      int three : 3;
+      unsigned three : 3;
       int four : 4;
     };
 
     union {
       int five : 3;
-      int six : 4;
+      unsigned six : 4;
     };
   } data;
-} s1 = { .one = 1, .two = 2, .data = { .three = 3, .five = 5 } };
+} s1 = { .one = 1, .two = 2,
+        /* Use all-ones bit patterns for endianness independence.  */
+        .data = { .four = -1, .six = 15 } };
 
 struct s2_t
 {
This page took 0.031672 seconds and 4 git commands to generate.