X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.mi%2Fmi-var-child.c;h=3d353c4f88bfe0bad41b062f019fdf096e5d73a6;hb=003ea5a89ab7e9eaa65cb158a953d63dac2612c6;hp=bde668edc8795422a0e80df2dc7333f30fcec5ed;hpb=a0eaec95753c0f093f5cb80080ef423030d35edd;p=platform%2Fupstream%2Fgdb.git diff --git a/gdb/testsuite/gdb.mi/mi-var-child.c b/gdb/testsuite/gdb.mi/mi-var-child.c index bde668e..3d353c4 100644 --- a/gdb/testsuite/gdb.mi/mi-var-child.c +++ b/gdb/testsuite/gdb.mi/mi-var-child.c @@ -1,4 +1,4 @@ -/* Copyright 1999-2014 Free Software Foundation, Inc. +/* Copyright 1999-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -160,6 +160,20 @@ nothing () { } +struct _struct_decl +nothing1 (int a, char *b, long c) +{ + struct _struct_decl foo; + + return foo; +} + +struct _struct_decl * +nothing2 (int a, char *b, long c) +{ + return (struct _struct_decl *) 0; +} + void subroutine1 (int i, long *l) { @@ -231,6 +245,8 @@ do_children_tests (void) struct_declarations.long_array[9] = 1234; weird->func_ptr = nothing; + weird->func_ptr_struct = nothing1; + weird->func_ptr_ptr = nothing2; struct_declarations.long_array[10] = 3456; struct_declarations.long_array[11] = 5678;