1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2014-2015 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/>. */
19 #define ARG_MACRO(X, Y) ((X) + (Y) - 1)
27 typedef int v4
__attribute__ ((vector_size (16)));
33 unsigned char ucharfield
;
35 unsigned short ushortfield
;
37 unsigned int uintfield
;
38 unsigned int bitfield
: 3;
40 unsigned long ulongfield
;
41 enum enum_type enumfield
;
44 const union union_type
*ptrfield
;
45 volatile struct struct_type
*selffield
;
47 _Complex
double complexfield
;
52 typedef int inttypedef
;
56 inttypedef typedeffield
;
59 /* volatile provides some coverage of the conversion code. */
60 volatile struct struct_type struct_object
;
62 union union_type union_object
;
65 enum ulonger_enum_type
{
66 REALLY_MINUS_1
= -1UL,
69 enum ulonger_enum_type ulonger
;
71 enum longer_enum_type
{
73 FORCE_TO_LONG
= 1L << ((8 * sizeof (long)) - 2)
76 enum longer_enum_type longer
;
81 func_static (int addend
)
87 func_global (int subtrahend
)
89 globalvar
-= subtrahend
;
93 no_args_or_locals (void)
95 /* no_args_or_locals breakpoint */
99 int globalshadow
= 10;
100 static int staticshadow
= 20;
110 int globalshadow
= 100;
111 int staticshadow
= 200;
115 static int static_local
= 77000;
118 int another_local
= 7;
120 extern int unresolved
;
125 func_static (0); /* break-here */
126 no_args_or_locals ();