diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/python-prettyprint.c')
-rw-r--r-- | gdb/testsuite/gdb.python/python-prettyprint.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/python-prettyprint.c b/gdb/testsuite/gdb.python/python-prettyprint.c index 399be23..3cafc48 100644 --- a/gdb/testsuite/gdb.python/python-prettyprint.c +++ b/gdb/testsuite/gdb.python/python-prettyprint.c @@ -27,6 +27,11 @@ struct ss struct s b; }; +struct ns { + const char *null_str; + int length; +}; + #ifdef __cplusplus struct S : public s { int zs; @@ -156,6 +161,10 @@ main () init_ss(ssa+0, 3, 4); init_ss(ssa+1, 5, 6); + struct ns ns; + ns.null_str = "embedded\0null\0string"; + ns.length = 20; + #ifdef __cplusplus S cps; |