Fix PR c++/23373: GDB hangs when printing a struct with a static member of itself
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / ptype-offsets.cc
index 7b01dbc5fb46d57ff433d01f584dc5d042abf100..e1aefe5bb3f280c7f02abb0cddc03983bfcf84f8 100644 (file)
@@ -177,6 +177,13 @@ struct asd
   void *f16;
 };
 
+/* See PR c++/23373.  */
+
+struct static_member
+{
+  static static_member Empty;
+  int abc;
+};
 
 int
 main (int argc, char *argv[])
@@ -188,6 +195,7 @@ main (int argc, char *argv[])
   struct tyu e;
   struct asd f;
   uint8_t i;
+  static_member stmember;
 
   return 0;
 }
This page took 0.024428 seconds and 4 git commands to generate.