Imported Upstream version 7.9
[platform/upstream/gdb.git] / gdb / testsuite / gdb.mi / mi-var-child.c
index bde668e..3d353c4 100644 (file)
@@ -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;