2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-prettyprint.c
index f461bb184523ed3cfea28b76d8f4b792e1f8b7b1..66a90141f121a7780fb7368f6fa58818b5430798 100644 (file)
@@ -29,6 +29,12 @@ struct ss
   struct s b;
 };
 
+struct arraystruct
+{
+  int y;
+  struct s x[2];
+};
+
 struct ns {
   const char *null_str;
   int length;
@@ -199,6 +205,7 @@ main ()
 {
   struct ss  ss;
   struct ss  ssa[2];
+  struct arraystruct arraystruct;
   string x = make_string ("this is x");
   zzz_type c = make_container ("container");
   zzz_type c2 = make_container ("container2");
@@ -214,6 +221,10 @@ main ()
   init_ss(ssa+1, 5, 6);
   memset (&nullstr, 0, sizeof nullstr);
 
+  arraystruct.y = 7;
+  init_s (&arraystruct.x[0], 23);
+  init_s (&arraystruct.x[1], 24);
+
   struct ns  ns;
   ns.null_str = "embedded\0null\0string";
   ns.length = 20;
This page took 0.024102 seconds and 4 git commands to generate.