aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-prettyprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.python/py-prettyprint.c')
-rw-r--r--gdb/testsuite/gdb.python/py-prettyprint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.c b/gdb/testsuite/gdb.python/py-prettyprint.c
index 35c7500..5f98433 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.c
+++ b/gdb/testsuite/gdb.python/py-prettyprint.c
@@ -212,7 +212,7 @@ main ()
const struct string_repr cstring = { { "const string" } };
/* Clearing by being `static' could invoke an other GDB C++ bug. */
struct nullstr nullstr;
- nostring_type nstype;
+ nostring_type nstype, nstype2;
struct ns ns, ns2;
struct lazystring estring, estring2;
@@ -283,5 +283,7 @@ main ()
nstype.elements[1] = 42;
nstype.len = 2;
+ nstype2 = nstype;
+
return 0; /* break to inspect struct and union */
}