[PATCH 12/57][Arm][GAS] Add support for MVE instructions: vaddlv and vaddv
[binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-var-list-children-invalid-grandchild.c
blobeefe61b3e64bc606a212b7a681bb78999a82abed
1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2015-2019 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 struct inner
20 int a;
23 struct outer
25 struct inner *inner;
28 int main (void)
30 struct inner inner;
31 struct outer outer;
32 struct outer *p_outer;
34 inner.a = 42;
35 outer.inner = &inner;
37 /* We force p_outer to an invalid value, but this also happens naturally
38 * when a variable has not been initialized. */
40 p_outer = 0;
41 /* p_outer set to invalid value */
42 p_outer = &outer;
43 /* p_outer set to valid value */
45 return 0;