1da0c48c4Sopenharmony_ci#! /bin/sh
2da0c48c4Sopenharmony_ci# Copyright (C) 2009, 2014 Red Hat, Inc.
3da0c48c4Sopenharmony_ci# This file is part of elfutils.
4da0c48c4Sopenharmony_ci#
5da0c48c4Sopenharmony_ci# This file is free software; you can redistribute it and/or modify
6da0c48c4Sopenharmony_ci# it under the terms of the GNU General Public License as published by
7da0c48c4Sopenharmony_ci# the Free Software Foundation; either version 3 of the License, or
8da0c48c4Sopenharmony_ci# (at your option) any later version.
9da0c48c4Sopenharmony_ci#
10da0c48c4Sopenharmony_ci# elfutils is distributed in the hope that it will be useful, but
11da0c48c4Sopenharmony_ci# WITHOUT ANY WARRANTY; without even the implied warranty of
12da0c48c4Sopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13da0c48c4Sopenharmony_ci# GNU General Public License for more details.
14da0c48c4Sopenharmony_ci#
15da0c48c4Sopenharmony_ci# You should have received a copy of the GNU General Public License
16da0c48c4Sopenharmony_ci# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17da0c48c4Sopenharmony_ci
18da0c48c4Sopenharmony_ci. $srcdir/test-subr.sh
19da0c48c4Sopenharmony_ci
20da0c48c4Sopenharmony_citestfiles testfile51
21da0c48c4Sopenharmony_ci
22da0c48c4Sopenharmony_citestrun_compare ${abs_builddir}/dwarf-getmacros testfile51 0xb <<\EOF
23da0c48c4Sopenharmony_cifile /home/petr/proj/elfutils/pending/elfutils/tests/decom/x.c
24da0c48c4Sopenharmony_ci __STDC__ 1
25da0c48c4Sopenharmony_ci __STDC_HOSTED__ 1
26da0c48c4Sopenharmony_ci __GNUC__ 4
27da0c48c4Sopenharmony_ci __GNUC_MINOR__ 3
28da0c48c4Sopenharmony_ci __GNUC_PATCHLEVEL__ 2
29da0c48c4Sopenharmony_ci __GNUC_RH_RELEASE__ 7
30da0c48c4Sopenharmony_ci __SIZE_TYPE__ long unsigned int
31da0c48c4Sopenharmony_ci __PTRDIFF_TYPE__ long int
32da0c48c4Sopenharmony_ci __WCHAR_TYPE__ int
33da0c48c4Sopenharmony_ci __WINT_TYPE__ unsigned int
34da0c48c4Sopenharmony_ci __INTMAX_TYPE__ long int
35da0c48c4Sopenharmony_ci __UINTMAX_TYPE__ long unsigned int
36da0c48c4Sopenharmony_ci __GXX_ABI_VERSION 1002
37da0c48c4Sopenharmony_ci __SCHAR_MAX__ 127
38da0c48c4Sopenharmony_ci __SHRT_MAX__ 32767
39da0c48c4Sopenharmony_ci __INT_MAX__ 2147483647
40da0c48c4Sopenharmony_ci __LONG_MAX__ 9223372036854775807L
41da0c48c4Sopenharmony_ci __LONG_LONG_MAX__ 9223372036854775807LL
42da0c48c4Sopenharmony_ci __WCHAR_MAX__ 2147483647
43da0c48c4Sopenharmony_ci __CHAR_BIT__ 8
44da0c48c4Sopenharmony_ci __INTMAX_MAX__ 9223372036854775807L
45da0c48c4Sopenharmony_ci __FLT_EVAL_METHOD__ 0
46da0c48c4Sopenharmony_ci __DEC_EVAL_METHOD__ 2
47da0c48c4Sopenharmony_ci __FLT_RADIX__ 2
48da0c48c4Sopenharmony_ci __FLT_MANT_DIG__ 24
49da0c48c4Sopenharmony_ci __FLT_DIG__ 6
50da0c48c4Sopenharmony_ci __FLT_MIN_EXP__ (-125)
51da0c48c4Sopenharmony_ci __FLT_MIN_10_EXP__ (-37)
52da0c48c4Sopenharmony_ci __FLT_MAX_EXP__ 128
53da0c48c4Sopenharmony_ci __FLT_MAX_10_EXP__ 38
54da0c48c4Sopenharmony_ci __FLT_MAX__ 3.40282347e+38F
55da0c48c4Sopenharmony_ci __FLT_MIN__ 1.17549435e-38F
56da0c48c4Sopenharmony_ci __FLT_EPSILON__ 1.19209290e-7F
57da0c48c4Sopenharmony_ci __FLT_DENORM_MIN__ 1.40129846e-45F
58da0c48c4Sopenharmony_ci __FLT_HAS_DENORM__ 1
59da0c48c4Sopenharmony_ci __FLT_HAS_INFINITY__ 1
60da0c48c4Sopenharmony_ci __FLT_HAS_QUIET_NAN__ 1
61da0c48c4Sopenharmony_ci __DBL_MANT_DIG__ 53
62da0c48c4Sopenharmony_ci __DBL_DIG__ 15
63da0c48c4Sopenharmony_ci __DBL_MIN_EXP__ (-1021)
64da0c48c4Sopenharmony_ci __DBL_MIN_10_EXP__ (-307)
65da0c48c4Sopenharmony_ci __DBL_MAX_EXP__ 1024
66da0c48c4Sopenharmony_ci __DBL_MAX_10_EXP__ 308
67da0c48c4Sopenharmony_ci __DBL_MAX__ 1.7976931348623157e+308
68da0c48c4Sopenharmony_ci __DBL_MIN__ 2.2250738585072014e-308
69da0c48c4Sopenharmony_ci __DBL_EPSILON__ 2.2204460492503131e-16
70da0c48c4Sopenharmony_ci __DBL_DENORM_MIN__ 4.9406564584124654e-324
71da0c48c4Sopenharmony_ci __DBL_HAS_DENORM__ 1
72da0c48c4Sopenharmony_ci __DBL_HAS_INFINITY__ 1
73da0c48c4Sopenharmony_ci __DBL_HAS_QUIET_NAN__ 1
74da0c48c4Sopenharmony_ci __LDBL_MANT_DIG__ 64
75da0c48c4Sopenharmony_ci __LDBL_DIG__ 18
76da0c48c4Sopenharmony_ci __LDBL_MIN_EXP__ (-16381)
77da0c48c4Sopenharmony_ci __LDBL_MIN_10_EXP__ (-4931)
78da0c48c4Sopenharmony_ci __LDBL_MAX_EXP__ 16384
79da0c48c4Sopenharmony_ci __LDBL_MAX_10_EXP__ 4932
80da0c48c4Sopenharmony_ci __DECIMAL_DIG__ 21
81da0c48c4Sopenharmony_ci __LDBL_MAX__ 1.18973149535723176502e+4932L
82da0c48c4Sopenharmony_ci __LDBL_MIN__ 3.36210314311209350626e-4932L
83da0c48c4Sopenharmony_ci __LDBL_EPSILON__ 1.08420217248550443401e-19L
84da0c48c4Sopenharmony_ci __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
85da0c48c4Sopenharmony_ci __LDBL_HAS_DENORM__ 1
86da0c48c4Sopenharmony_ci __LDBL_HAS_INFINITY__ 1
87da0c48c4Sopenharmony_ci __LDBL_HAS_QUIET_NAN__ 1
88da0c48c4Sopenharmony_ci __DEC32_MANT_DIG__ 7
89da0c48c4Sopenharmony_ci __DEC32_MIN_EXP__ (-95)
90da0c48c4Sopenharmony_ci __DEC32_MAX_EXP__ 96
91da0c48c4Sopenharmony_ci __DEC32_MIN__ 1E-95DF
92da0c48c4Sopenharmony_ci __DEC32_MAX__ 9.999999E96DF
93da0c48c4Sopenharmony_ci __DEC32_EPSILON__ 1E-6DF
94da0c48c4Sopenharmony_ci __DEC32_DEN__ 0.000001E-95DF
95da0c48c4Sopenharmony_ci __DEC64_MANT_DIG__ 16
96da0c48c4Sopenharmony_ci __DEC64_MIN_EXP__ (-383)
97da0c48c4Sopenharmony_ci __DEC64_MAX_EXP__ 384
98da0c48c4Sopenharmony_ci __DEC64_MIN__ 1E-383DD
99da0c48c4Sopenharmony_ci __DEC64_MAX__ 9.999999999999999E384DD
100da0c48c4Sopenharmony_ci __DEC64_EPSILON__ 1E-15DD
101da0c48c4Sopenharmony_ci __DEC64_DEN__ 0.000000000000001E-383DD
102da0c48c4Sopenharmony_ci __DEC128_MANT_DIG__ 34
103da0c48c4Sopenharmony_ci __DEC128_MIN_EXP__ (-6143)
104da0c48c4Sopenharmony_ci __DEC128_MAX_EXP__ 6144
105da0c48c4Sopenharmony_ci __DEC128_MIN__ 1E-6143DL
106da0c48c4Sopenharmony_ci __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
107da0c48c4Sopenharmony_ci __DEC128_EPSILON__ 1E-33DL
108da0c48c4Sopenharmony_ci __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL
109da0c48c4Sopenharmony_ci __REGISTER_PREFIX__ 
110da0c48c4Sopenharmony_ci __USER_LABEL_PREFIX__ 
111da0c48c4Sopenharmony_ci __VERSION__ "4.3.2 20081105 (Red Hat 4.3.2-7)"
112da0c48c4Sopenharmony_ci __GNUC_GNU_INLINE__ 1
113da0c48c4Sopenharmony_ci _LP64 1
114da0c48c4Sopenharmony_ci __LP64__ 1
115da0c48c4Sopenharmony_ci __NO_INLINE__ 1
116da0c48c4Sopenharmony_ci __FINITE_MATH_ONLY__ 0
117da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
118da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
119da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
120da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
121da0c48c4Sopenharmony_ci __SIZEOF_INT__ 4
122da0c48c4Sopenharmony_ci __SIZEOF_LONG__ 8
123da0c48c4Sopenharmony_ci __SIZEOF_LONG_LONG__ 8
124da0c48c4Sopenharmony_ci __SIZEOF_SHORT__ 2
125da0c48c4Sopenharmony_ci __SIZEOF_FLOAT__ 4
126da0c48c4Sopenharmony_ci __SIZEOF_DOUBLE__ 8
127da0c48c4Sopenharmony_ci __SIZEOF_LONG_DOUBLE__ 16
128da0c48c4Sopenharmony_ci __SIZEOF_SIZE_T__ 8
129da0c48c4Sopenharmony_ci __SIZEOF_WCHAR_T__ 4
130da0c48c4Sopenharmony_ci __SIZEOF_WINT_T__ 4
131da0c48c4Sopenharmony_ci __SIZEOF_PTRDIFF_T__ 8
132da0c48c4Sopenharmony_ci __SIZEOF_POINTER__ 8
133da0c48c4Sopenharmony_ci __amd64 1
134da0c48c4Sopenharmony_ci __amd64__ 1
135da0c48c4Sopenharmony_ci __x86_64 1
136da0c48c4Sopenharmony_ci __x86_64__ 1
137da0c48c4Sopenharmony_ci __k8 1
138da0c48c4Sopenharmony_ci __k8__ 1
139da0c48c4Sopenharmony_ci __MMX__ 1
140da0c48c4Sopenharmony_ci __SSE__ 1
141da0c48c4Sopenharmony_ci __SSE2__ 1
142da0c48c4Sopenharmony_ci __SSE_MATH__ 1
143da0c48c4Sopenharmony_ci __SSE2_MATH__ 1
144da0c48c4Sopenharmony_ci __gnu_linux__ 1
145da0c48c4Sopenharmony_ci __linux 1
146da0c48c4Sopenharmony_ci __linux__ 1
147da0c48c4Sopenharmony_ci linux 1
148da0c48c4Sopenharmony_ci __unix 1
149da0c48c4Sopenharmony_ci __unix__ 1
150da0c48c4Sopenharmony_ci unix 1
151da0c48c4Sopenharmony_ci __ELF__ 1
152da0c48c4Sopenharmony_ci __DECIMAL_BID_FORMAT__ 1
153da0c48c4Sopenharmony_ci macro1 ble
154da0c48c4Sopenharmony_ci/file
155da0c48c4Sopenharmony_ciEOF
156da0c48c4Sopenharmony_ci
157da0c48c4Sopenharmony_citestrun_compare ${abs_builddir}/dwarf-getmacros testfile51 0x84 <<\EOF
158da0c48c4Sopenharmony_cifile /home/petr/proj/elfutils/pending/elfutils/tests/decom/y.c
159da0c48c4Sopenharmony_ci __STDC__ 1
160da0c48c4Sopenharmony_ci __STDC_HOSTED__ 1
161da0c48c4Sopenharmony_ci __GNUC__ 4
162da0c48c4Sopenharmony_ci __GNUC_MINOR__ 3
163da0c48c4Sopenharmony_ci __GNUC_PATCHLEVEL__ 2
164da0c48c4Sopenharmony_ci __GNUC_RH_RELEASE__ 7
165da0c48c4Sopenharmony_ci __SIZE_TYPE__ long unsigned int
166da0c48c4Sopenharmony_ci __PTRDIFF_TYPE__ long int
167da0c48c4Sopenharmony_ci __WCHAR_TYPE__ int
168da0c48c4Sopenharmony_ci __WINT_TYPE__ unsigned int
169da0c48c4Sopenharmony_ci __INTMAX_TYPE__ long int
170da0c48c4Sopenharmony_ci __UINTMAX_TYPE__ long unsigned int
171da0c48c4Sopenharmony_ci __GXX_ABI_VERSION 1002
172da0c48c4Sopenharmony_ci __SCHAR_MAX__ 127
173da0c48c4Sopenharmony_ci __SHRT_MAX__ 32767
174da0c48c4Sopenharmony_ci __INT_MAX__ 2147483647
175da0c48c4Sopenharmony_ci __LONG_MAX__ 9223372036854775807L
176da0c48c4Sopenharmony_ci __LONG_LONG_MAX__ 9223372036854775807LL
177da0c48c4Sopenharmony_ci __WCHAR_MAX__ 2147483647
178da0c48c4Sopenharmony_ci __CHAR_BIT__ 8
179da0c48c4Sopenharmony_ci __INTMAX_MAX__ 9223372036854775807L
180da0c48c4Sopenharmony_ci __FLT_EVAL_METHOD__ 0
181da0c48c4Sopenharmony_ci __DEC_EVAL_METHOD__ 2
182da0c48c4Sopenharmony_ci __FLT_RADIX__ 2
183da0c48c4Sopenharmony_ci __FLT_MANT_DIG__ 24
184da0c48c4Sopenharmony_ci __FLT_DIG__ 6
185da0c48c4Sopenharmony_ci __FLT_MIN_EXP__ (-125)
186da0c48c4Sopenharmony_ci __FLT_MIN_10_EXP__ (-37)
187da0c48c4Sopenharmony_ci __FLT_MAX_EXP__ 128
188da0c48c4Sopenharmony_ci __FLT_MAX_10_EXP__ 38
189da0c48c4Sopenharmony_ci __FLT_MAX__ 3.40282347e+38F
190da0c48c4Sopenharmony_ci __FLT_MIN__ 1.17549435e-38F
191da0c48c4Sopenharmony_ci __FLT_EPSILON__ 1.19209290e-7F
192da0c48c4Sopenharmony_ci __FLT_DENORM_MIN__ 1.40129846e-45F
193da0c48c4Sopenharmony_ci __FLT_HAS_DENORM__ 1
194da0c48c4Sopenharmony_ci __FLT_HAS_INFINITY__ 1
195da0c48c4Sopenharmony_ci __FLT_HAS_QUIET_NAN__ 1
196da0c48c4Sopenharmony_ci __DBL_MANT_DIG__ 53
197da0c48c4Sopenharmony_ci __DBL_DIG__ 15
198da0c48c4Sopenharmony_ci __DBL_MIN_EXP__ (-1021)
199da0c48c4Sopenharmony_ci __DBL_MIN_10_EXP__ (-307)
200da0c48c4Sopenharmony_ci __DBL_MAX_EXP__ 1024
201da0c48c4Sopenharmony_ci __DBL_MAX_10_EXP__ 308
202da0c48c4Sopenharmony_ci __DBL_MAX__ 1.7976931348623157e+308
203da0c48c4Sopenharmony_ci __DBL_MIN__ 2.2250738585072014e-308
204da0c48c4Sopenharmony_ci __DBL_EPSILON__ 2.2204460492503131e-16
205da0c48c4Sopenharmony_ci __DBL_DENORM_MIN__ 4.9406564584124654e-324
206da0c48c4Sopenharmony_ci __DBL_HAS_DENORM__ 1
207da0c48c4Sopenharmony_ci __DBL_HAS_INFINITY__ 1
208da0c48c4Sopenharmony_ci __DBL_HAS_QUIET_NAN__ 1
209da0c48c4Sopenharmony_ci __LDBL_MANT_DIG__ 64
210da0c48c4Sopenharmony_ci __LDBL_DIG__ 18
211da0c48c4Sopenharmony_ci __LDBL_MIN_EXP__ (-16381)
212da0c48c4Sopenharmony_ci __LDBL_MIN_10_EXP__ (-4931)
213da0c48c4Sopenharmony_ci __LDBL_MAX_EXP__ 16384
214da0c48c4Sopenharmony_ci __LDBL_MAX_10_EXP__ 4932
215da0c48c4Sopenharmony_ci __DECIMAL_DIG__ 21
216da0c48c4Sopenharmony_ci __LDBL_MAX__ 1.18973149535723176502e+4932L
217da0c48c4Sopenharmony_ci __LDBL_MIN__ 3.36210314311209350626e-4932L
218da0c48c4Sopenharmony_ci __LDBL_EPSILON__ 1.08420217248550443401e-19L
219da0c48c4Sopenharmony_ci __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
220da0c48c4Sopenharmony_ci __LDBL_HAS_DENORM__ 1
221da0c48c4Sopenharmony_ci __LDBL_HAS_INFINITY__ 1
222da0c48c4Sopenharmony_ci __LDBL_HAS_QUIET_NAN__ 1
223da0c48c4Sopenharmony_ci __DEC32_MANT_DIG__ 7
224da0c48c4Sopenharmony_ci __DEC32_MIN_EXP__ (-95)
225da0c48c4Sopenharmony_ci __DEC32_MAX_EXP__ 96
226da0c48c4Sopenharmony_ci __DEC32_MIN__ 1E-95DF
227da0c48c4Sopenharmony_ci __DEC32_MAX__ 9.999999E96DF
228da0c48c4Sopenharmony_ci __DEC32_EPSILON__ 1E-6DF
229da0c48c4Sopenharmony_ci __DEC32_DEN__ 0.000001E-95DF
230da0c48c4Sopenharmony_ci __DEC64_MANT_DIG__ 16
231da0c48c4Sopenharmony_ci __DEC64_MIN_EXP__ (-383)
232da0c48c4Sopenharmony_ci __DEC64_MAX_EXP__ 384
233da0c48c4Sopenharmony_ci __DEC64_MIN__ 1E-383DD
234da0c48c4Sopenharmony_ci __DEC64_MAX__ 9.999999999999999E384DD
235da0c48c4Sopenharmony_ci __DEC64_EPSILON__ 1E-15DD
236da0c48c4Sopenharmony_ci __DEC64_DEN__ 0.000000000000001E-383DD
237da0c48c4Sopenharmony_ci __DEC128_MANT_DIG__ 34
238da0c48c4Sopenharmony_ci __DEC128_MIN_EXP__ (-6143)
239da0c48c4Sopenharmony_ci __DEC128_MAX_EXP__ 6144
240da0c48c4Sopenharmony_ci __DEC128_MIN__ 1E-6143DL
241da0c48c4Sopenharmony_ci __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
242da0c48c4Sopenharmony_ci __DEC128_EPSILON__ 1E-33DL
243da0c48c4Sopenharmony_ci __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL
244da0c48c4Sopenharmony_ci __REGISTER_PREFIX__ 
245da0c48c4Sopenharmony_ci __USER_LABEL_PREFIX__ 
246da0c48c4Sopenharmony_ci __VERSION__ "4.3.2 20081105 (Red Hat 4.3.2-7)"
247da0c48c4Sopenharmony_ci __GNUC_GNU_INLINE__ 1
248da0c48c4Sopenharmony_ci _LP64 1
249da0c48c4Sopenharmony_ci __LP64__ 1
250da0c48c4Sopenharmony_ci __NO_INLINE__ 1
251da0c48c4Sopenharmony_ci __FINITE_MATH_ONLY__ 0
252da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
253da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
254da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
255da0c48c4Sopenharmony_ci __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
256da0c48c4Sopenharmony_ci __SIZEOF_INT__ 4
257da0c48c4Sopenharmony_ci __SIZEOF_LONG__ 8
258da0c48c4Sopenharmony_ci __SIZEOF_LONG_LONG__ 8
259da0c48c4Sopenharmony_ci __SIZEOF_SHORT__ 2
260da0c48c4Sopenharmony_ci __SIZEOF_FLOAT__ 4
261da0c48c4Sopenharmony_ci __SIZEOF_DOUBLE__ 8
262da0c48c4Sopenharmony_ci __SIZEOF_LONG_DOUBLE__ 16
263da0c48c4Sopenharmony_ci __SIZEOF_SIZE_T__ 8
264da0c48c4Sopenharmony_ci __SIZEOF_WCHAR_T__ 4
265da0c48c4Sopenharmony_ci __SIZEOF_WINT_T__ 4
266da0c48c4Sopenharmony_ci __SIZEOF_PTRDIFF_T__ 8
267da0c48c4Sopenharmony_ci __SIZEOF_POINTER__ 8
268da0c48c4Sopenharmony_ci __amd64 1
269da0c48c4Sopenharmony_ci __amd64__ 1
270da0c48c4Sopenharmony_ci __x86_64 1
271da0c48c4Sopenharmony_ci __x86_64__ 1
272da0c48c4Sopenharmony_ci __k8 1
273da0c48c4Sopenharmony_ci __k8__ 1
274da0c48c4Sopenharmony_ci __MMX__ 1
275da0c48c4Sopenharmony_ci __SSE__ 1
276da0c48c4Sopenharmony_ci __SSE2__ 1
277da0c48c4Sopenharmony_ci __SSE_MATH__ 1
278da0c48c4Sopenharmony_ci __SSE2_MATH__ 1
279da0c48c4Sopenharmony_ci __gnu_linux__ 1
280da0c48c4Sopenharmony_ci __linux 1
281da0c48c4Sopenharmony_ci __linux__ 1
282da0c48c4Sopenharmony_ci linux 1
283da0c48c4Sopenharmony_ci __unix 1
284da0c48c4Sopenharmony_ci __unix__ 1
285da0c48c4Sopenharmony_ci unix 1
286da0c48c4Sopenharmony_ci __ELF__ 1
287da0c48c4Sopenharmony_ci __DECIMAL_BID_FORMAT__ 1
288da0c48c4Sopenharmony_ci macro2 ble
289da0c48c4Sopenharmony_ci/file
290da0c48c4Sopenharmony_ciEOF
291da0c48c4Sopenharmony_ci
292da0c48c4Sopenharmony_citestfiles testfile-macros
293da0c48c4Sopenharmony_ci
294da0c48c4Sopenharmony_citestrun_compare ${abs_builddir}/dwarf-getmacros testfile-macros 0xb <<\EOF
295da0c48c4Sopenharmony_ci__STDC__ 1
296da0c48c4Sopenharmony_ci__STDC_HOSTED__ 1
297da0c48c4Sopenharmony_ci__GNUC__ 4
298da0c48c4Sopenharmony_ci__GNUC_MINOR__ 7
299da0c48c4Sopenharmony_ci__GNUC_PATCHLEVEL__ 0
300da0c48c4Sopenharmony_ci__VERSION__ "4.7.0 20120507 (Red Hat 4.7.0-5)"
301da0c48c4Sopenharmony_ci__GNUC_RH_RELEASE__ 5
302da0c48c4Sopenharmony_ci__ATOMIC_RELAXED 0
303da0c48c4Sopenharmony_ci__ATOMIC_SEQ_CST 5
304da0c48c4Sopenharmony_ci__ATOMIC_ACQUIRE 2
305da0c48c4Sopenharmony_ci__ATOMIC_RELEASE 3
306da0c48c4Sopenharmony_ci__ATOMIC_ACQ_REL 4
307da0c48c4Sopenharmony_ci__ATOMIC_CONSUME 1
308da0c48c4Sopenharmony_ci__FINITE_MATH_ONLY__ 0
309da0c48c4Sopenharmony_ci_LP64 1
310da0c48c4Sopenharmony_ci__LP64__ 1
311da0c48c4Sopenharmony_ci__SIZEOF_INT__ 4
312da0c48c4Sopenharmony_ci__SIZEOF_LONG__ 8
313da0c48c4Sopenharmony_ci__SIZEOF_LONG_LONG__ 8
314da0c48c4Sopenharmony_ci__SIZEOF_SHORT__ 2
315da0c48c4Sopenharmony_ci__SIZEOF_FLOAT__ 4
316da0c48c4Sopenharmony_ci__SIZEOF_DOUBLE__ 8
317da0c48c4Sopenharmony_ci__SIZEOF_LONG_DOUBLE__ 16
318da0c48c4Sopenharmony_ci__SIZEOF_SIZE_T__ 8
319da0c48c4Sopenharmony_ci__CHAR_BIT__ 8
320da0c48c4Sopenharmony_ci__BIGGEST_ALIGNMENT__ 16
321da0c48c4Sopenharmony_ci__ORDER_LITTLE_ENDIAN__ 1234
322da0c48c4Sopenharmony_ci__ORDER_BIG_ENDIAN__ 4321
323da0c48c4Sopenharmony_ci__ORDER_PDP_ENDIAN__ 3412
324da0c48c4Sopenharmony_ci__BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
325da0c48c4Sopenharmony_ci__FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
326da0c48c4Sopenharmony_ci__SIZEOF_POINTER__ 8
327da0c48c4Sopenharmony_ci__SIZE_TYPE__ long unsigned int
328da0c48c4Sopenharmony_ci__PTRDIFF_TYPE__ long int
329da0c48c4Sopenharmony_ci__WCHAR_TYPE__ int
330da0c48c4Sopenharmony_ci__WINT_TYPE__ unsigned int
331da0c48c4Sopenharmony_ci__INTMAX_TYPE__ long int
332da0c48c4Sopenharmony_ci__UINTMAX_TYPE__ long unsigned int
333da0c48c4Sopenharmony_ci__CHAR16_TYPE__ short unsigned int
334da0c48c4Sopenharmony_ci__CHAR32_TYPE__ unsigned int
335da0c48c4Sopenharmony_ci__SIG_ATOMIC_TYPE__ int
336da0c48c4Sopenharmony_ci__INT8_TYPE__ signed char
337da0c48c4Sopenharmony_ci__INT16_TYPE__ short int
338da0c48c4Sopenharmony_ci__INT32_TYPE__ int
339da0c48c4Sopenharmony_ci__INT64_TYPE__ long int
340da0c48c4Sopenharmony_ci__UINT8_TYPE__ unsigned char
341da0c48c4Sopenharmony_ci__UINT16_TYPE__ short unsigned int
342da0c48c4Sopenharmony_ci__UINT32_TYPE__ unsigned int
343da0c48c4Sopenharmony_ci__UINT64_TYPE__ long unsigned int
344da0c48c4Sopenharmony_ci__INT_LEAST8_TYPE__ signed char
345da0c48c4Sopenharmony_ci__INT_LEAST16_TYPE__ short int
346da0c48c4Sopenharmony_ci__INT_LEAST32_TYPE__ int
347da0c48c4Sopenharmony_ci__INT_LEAST64_TYPE__ long int
348da0c48c4Sopenharmony_ci__UINT_LEAST8_TYPE__ unsigned char
349da0c48c4Sopenharmony_ci__UINT_LEAST16_TYPE__ short unsigned int
350da0c48c4Sopenharmony_ci__UINT_LEAST32_TYPE__ unsigned int
351da0c48c4Sopenharmony_ci__UINT_LEAST64_TYPE__ long unsigned int
352da0c48c4Sopenharmony_ci__INT_FAST8_TYPE__ signed char
353da0c48c4Sopenharmony_ci__INT_FAST16_TYPE__ long int
354da0c48c4Sopenharmony_ci__INT_FAST32_TYPE__ long int
355da0c48c4Sopenharmony_ci__INT_FAST64_TYPE__ long int
356da0c48c4Sopenharmony_ci__UINT_FAST8_TYPE__ unsigned char
357da0c48c4Sopenharmony_ci__UINT_FAST16_TYPE__ long unsigned int
358da0c48c4Sopenharmony_ci__UINT_FAST32_TYPE__ long unsigned int
359da0c48c4Sopenharmony_ci__UINT_FAST64_TYPE__ long unsigned int
360da0c48c4Sopenharmony_ci__INTPTR_TYPE__ long int
361da0c48c4Sopenharmony_ci__UINTPTR_TYPE__ long unsigned int
362da0c48c4Sopenharmony_ci__GXX_ABI_VERSION 1002
363da0c48c4Sopenharmony_ci__SCHAR_MAX__ 127
364da0c48c4Sopenharmony_ci__SHRT_MAX__ 32767
365da0c48c4Sopenharmony_ci__INT_MAX__ 2147483647
366da0c48c4Sopenharmony_ci__LONG_MAX__ 9223372036854775807L
367da0c48c4Sopenharmony_ci__LONG_LONG_MAX__ 9223372036854775807LL
368da0c48c4Sopenharmony_ci__WCHAR_MAX__ 2147483647
369da0c48c4Sopenharmony_ci__WCHAR_MIN__ (-__WCHAR_MAX__ - 1)
370da0c48c4Sopenharmony_ci__WINT_MAX__ 4294967295U
371da0c48c4Sopenharmony_ci__WINT_MIN__ 0U
372da0c48c4Sopenharmony_ci__PTRDIFF_MAX__ 9223372036854775807L
373da0c48c4Sopenharmony_ci__SIZE_MAX__ 18446744073709551615UL
374da0c48c4Sopenharmony_ci__INTMAX_MAX__ 9223372036854775807L
375da0c48c4Sopenharmony_ci__INTMAX_C(c) c ## L
376da0c48c4Sopenharmony_ci__UINTMAX_MAX__ 18446744073709551615UL
377da0c48c4Sopenharmony_ci__UINTMAX_C(c) c ## UL
378da0c48c4Sopenharmony_ci__SIG_ATOMIC_MAX__ 2147483647
379da0c48c4Sopenharmony_ci__SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
380da0c48c4Sopenharmony_ci__INT8_MAX__ 127
381da0c48c4Sopenharmony_ci__INT16_MAX__ 32767
382da0c48c4Sopenharmony_ci__INT32_MAX__ 2147483647
383da0c48c4Sopenharmony_ci__INT64_MAX__ 9223372036854775807L
384da0c48c4Sopenharmony_ci__UINT8_MAX__ 255
385da0c48c4Sopenharmony_ci__UINT16_MAX__ 65535
386da0c48c4Sopenharmony_ci__UINT32_MAX__ 4294967295U
387da0c48c4Sopenharmony_ci__UINT64_MAX__ 18446744073709551615UL
388da0c48c4Sopenharmony_ci__INT_LEAST8_MAX__ 127
389da0c48c4Sopenharmony_ci__INT8_C(c) c
390da0c48c4Sopenharmony_ci__INT_LEAST16_MAX__ 32767
391da0c48c4Sopenharmony_ci__INT16_C(c) c
392da0c48c4Sopenharmony_ci__INT_LEAST32_MAX__ 2147483647
393da0c48c4Sopenharmony_ci__INT32_C(c) c
394da0c48c4Sopenharmony_ci__INT_LEAST64_MAX__ 9223372036854775807L
395da0c48c4Sopenharmony_ci__INT64_C(c) c ## L
396da0c48c4Sopenharmony_ci__UINT_LEAST8_MAX__ 255
397da0c48c4Sopenharmony_ci__UINT8_C(c) c
398da0c48c4Sopenharmony_ci__UINT_LEAST16_MAX__ 65535
399da0c48c4Sopenharmony_ci__UINT16_C(c) c
400da0c48c4Sopenharmony_ci__UINT_LEAST32_MAX__ 4294967295U
401da0c48c4Sopenharmony_ci__UINT32_C(c) c ## U
402da0c48c4Sopenharmony_ci__UINT_LEAST64_MAX__ 18446744073709551615UL
403da0c48c4Sopenharmony_ci__UINT64_C(c) c ## UL
404da0c48c4Sopenharmony_ci__INT_FAST8_MAX__ 127
405da0c48c4Sopenharmony_ci__INT_FAST16_MAX__ 9223372036854775807L
406da0c48c4Sopenharmony_ci__INT_FAST32_MAX__ 9223372036854775807L
407da0c48c4Sopenharmony_ci__INT_FAST64_MAX__ 9223372036854775807L
408da0c48c4Sopenharmony_ci__UINT_FAST8_MAX__ 255
409da0c48c4Sopenharmony_ci__UINT_FAST16_MAX__ 18446744073709551615UL
410da0c48c4Sopenharmony_ci__UINT_FAST32_MAX__ 18446744073709551615UL
411da0c48c4Sopenharmony_ci__UINT_FAST64_MAX__ 18446744073709551615UL
412da0c48c4Sopenharmony_ci__INTPTR_MAX__ 9223372036854775807L
413da0c48c4Sopenharmony_ci__UINTPTR_MAX__ 18446744073709551615UL
414da0c48c4Sopenharmony_ci__FLT_EVAL_METHOD__ 0
415da0c48c4Sopenharmony_ci__DEC_EVAL_METHOD__ 2
416da0c48c4Sopenharmony_ci__FLT_RADIX__ 2
417da0c48c4Sopenharmony_ci__FLT_MANT_DIG__ 24
418da0c48c4Sopenharmony_ci__FLT_DIG__ 6
419da0c48c4Sopenharmony_ci__FLT_MIN_EXP__ (-125)
420da0c48c4Sopenharmony_ci__FLT_MIN_10_EXP__ (-37)
421da0c48c4Sopenharmony_ci__FLT_MAX_EXP__ 128
422da0c48c4Sopenharmony_ci__FLT_MAX_10_EXP__ 38
423da0c48c4Sopenharmony_ci__FLT_DECIMAL_DIG__ 9
424da0c48c4Sopenharmony_ci__FLT_MAX__ 3.40282346638528859812e+38F
425da0c48c4Sopenharmony_ci__FLT_MIN__ 1.17549435082228750797e-38F
426da0c48c4Sopenharmony_ci__FLT_EPSILON__ 1.19209289550781250000e-7F
427da0c48c4Sopenharmony_ci__FLT_DENORM_MIN__ 1.40129846432481707092e-45F
428da0c48c4Sopenharmony_ci__FLT_HAS_DENORM__ 1
429da0c48c4Sopenharmony_ci__FLT_HAS_INFINITY__ 1
430da0c48c4Sopenharmony_ci__FLT_HAS_QUIET_NAN__ 1
431da0c48c4Sopenharmony_ci__DBL_MANT_DIG__ 53
432da0c48c4Sopenharmony_ci__DBL_DIG__ 15
433da0c48c4Sopenharmony_ci__DBL_MIN_EXP__ (-1021)
434da0c48c4Sopenharmony_ci__DBL_MIN_10_EXP__ (-307)
435da0c48c4Sopenharmony_ci__DBL_MAX_EXP__ 1024
436da0c48c4Sopenharmony_ci__DBL_MAX_10_EXP__ 308
437da0c48c4Sopenharmony_ci__DBL_DECIMAL_DIG__ 17
438da0c48c4Sopenharmony_ci__DBL_MAX__ ((double)1.79769313486231570815e+308L)
439da0c48c4Sopenharmony_ci__DBL_MIN__ ((double)2.22507385850720138309e-308L)
440da0c48c4Sopenharmony_ci__DBL_EPSILON__ ((double)2.22044604925031308085e-16L)
441da0c48c4Sopenharmony_ci__DBL_DENORM_MIN__ ((double)4.94065645841246544177e-324L)
442da0c48c4Sopenharmony_ci__DBL_HAS_DENORM__ 1
443da0c48c4Sopenharmony_ci__DBL_HAS_INFINITY__ 1
444da0c48c4Sopenharmony_ci__DBL_HAS_QUIET_NAN__ 1
445da0c48c4Sopenharmony_ci__LDBL_MANT_DIG__ 64
446da0c48c4Sopenharmony_ci__LDBL_DIG__ 18
447da0c48c4Sopenharmony_ci__LDBL_MIN_EXP__ (-16381)
448da0c48c4Sopenharmony_ci__LDBL_MIN_10_EXP__ (-4931)
449da0c48c4Sopenharmony_ci__LDBL_MAX_EXP__ 16384
450da0c48c4Sopenharmony_ci__LDBL_MAX_10_EXP__ 4932
451da0c48c4Sopenharmony_ci__DECIMAL_DIG__ 21
452da0c48c4Sopenharmony_ci__LDBL_MAX__ 1.18973149535723176502e+4932L
453da0c48c4Sopenharmony_ci__LDBL_MIN__ 3.36210314311209350626e-4932L
454da0c48c4Sopenharmony_ci__LDBL_EPSILON__ 1.08420217248550443401e-19L
455da0c48c4Sopenharmony_ci__LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
456da0c48c4Sopenharmony_ci__LDBL_HAS_DENORM__ 1
457da0c48c4Sopenharmony_ci__LDBL_HAS_INFINITY__ 1
458da0c48c4Sopenharmony_ci__LDBL_HAS_QUIET_NAN__ 1
459da0c48c4Sopenharmony_ci__DEC32_MANT_DIG__ 7
460da0c48c4Sopenharmony_ci__DEC32_MIN_EXP__ (-94)
461da0c48c4Sopenharmony_ci__DEC32_MAX_EXP__ 97
462da0c48c4Sopenharmony_ci__DEC32_MIN__ 1E-95DF
463da0c48c4Sopenharmony_ci__DEC32_MAX__ 9.999999E96DF
464da0c48c4Sopenharmony_ci__DEC32_EPSILON__ 1E-6DF
465da0c48c4Sopenharmony_ci__DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
466da0c48c4Sopenharmony_ci__DEC64_MANT_DIG__ 16
467da0c48c4Sopenharmony_ci__DEC64_MIN_EXP__ (-382)
468da0c48c4Sopenharmony_ci__DEC64_MAX_EXP__ 385
469da0c48c4Sopenharmony_ci__DEC64_MIN__ 1E-383DD
470da0c48c4Sopenharmony_ci__DEC64_MAX__ 9.999999999999999E384DD
471da0c48c4Sopenharmony_ci__DEC64_EPSILON__ 1E-15DD
472da0c48c4Sopenharmony_ci__DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD
473da0c48c4Sopenharmony_ci__DEC128_MANT_DIG__ 34
474da0c48c4Sopenharmony_ci__DEC128_MIN_EXP__ (-6142)
475da0c48c4Sopenharmony_ci__DEC128_MAX_EXP__ 6145
476da0c48c4Sopenharmony_ci__DEC128_MIN__ 1E-6143DL
477da0c48c4Sopenharmony_ci__DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
478da0c48c4Sopenharmony_ci__DEC128_EPSILON__ 1E-33DL
479da0c48c4Sopenharmony_ci__DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL
480da0c48c4Sopenharmony_ci__REGISTER_PREFIX__ 
481da0c48c4Sopenharmony_ci__USER_LABEL_PREFIX__ 
482da0c48c4Sopenharmony_ci__GNUC_GNU_INLINE__ 1
483da0c48c4Sopenharmony_ci__NO_INLINE__ 1
484da0c48c4Sopenharmony_ci__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
485da0c48c4Sopenharmony_ci__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
486da0c48c4Sopenharmony_ci__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
487da0c48c4Sopenharmony_ci__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
488da0c48c4Sopenharmony_ci__GCC_ATOMIC_BOOL_LOCK_FREE 2
489da0c48c4Sopenharmony_ci__GCC_ATOMIC_CHAR_LOCK_FREE 2
490da0c48c4Sopenharmony_ci__GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
491da0c48c4Sopenharmony_ci__GCC_ATOMIC_CHAR32_T_LOCK_FREE 2
492da0c48c4Sopenharmony_ci__GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
493da0c48c4Sopenharmony_ci__GCC_ATOMIC_SHORT_LOCK_FREE 2
494da0c48c4Sopenharmony_ci__GCC_ATOMIC_INT_LOCK_FREE 2
495da0c48c4Sopenharmony_ci__GCC_ATOMIC_LONG_LOCK_FREE 2
496da0c48c4Sopenharmony_ci__GCC_ATOMIC_LLONG_LOCK_FREE 2
497da0c48c4Sopenharmony_ci__GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
498da0c48c4Sopenharmony_ci__GCC_ATOMIC_POINTER_LOCK_FREE 2
499da0c48c4Sopenharmony_ci__GCC_HAVE_DWARF2_CFI_ASM 1
500da0c48c4Sopenharmony_ci__PRAGMA_REDEFINE_EXTNAME 1
501da0c48c4Sopenharmony_ci__SIZEOF_INT128__ 16
502da0c48c4Sopenharmony_ci__SIZEOF_WCHAR_T__ 4
503da0c48c4Sopenharmony_ci__SIZEOF_WINT_T__ 4
504da0c48c4Sopenharmony_ci__SIZEOF_PTRDIFF_T__ 8
505da0c48c4Sopenharmony_ci__amd64 1
506da0c48c4Sopenharmony_ci__amd64__ 1
507da0c48c4Sopenharmony_ci__x86_64 1
508da0c48c4Sopenharmony_ci__x86_64__ 1
509da0c48c4Sopenharmony_ci__k8 1
510da0c48c4Sopenharmony_ci__k8__ 1
511da0c48c4Sopenharmony_ci__MMX__ 1
512da0c48c4Sopenharmony_ci__SSE__ 1
513da0c48c4Sopenharmony_ci__SSE2__ 1
514da0c48c4Sopenharmony_ci__SSE_MATH__ 1
515da0c48c4Sopenharmony_ci__SSE2_MATH__ 1
516da0c48c4Sopenharmony_ci__gnu_linux__ 1
517da0c48c4Sopenharmony_ci__linux 1
518da0c48c4Sopenharmony_ci__linux__ 1
519da0c48c4Sopenharmony_cilinux 1
520da0c48c4Sopenharmony_ci__unix 1
521da0c48c4Sopenharmony_ci__unix__ 1
522da0c48c4Sopenharmony_ciunix 1
523da0c48c4Sopenharmony_ci__ELF__ 1
524da0c48c4Sopenharmony_ci__DECIMAL_BID_FORMAT__ 1
525da0c48c4Sopenharmony_cifile /home/mark/src/tests/macro.c
526da0c48c4Sopenharmony_ci file /usr/include/string.h
527da0c48c4Sopenharmony_ci  _STRING_H 1
528da0c48c4Sopenharmony_ci  file /usr/include/features.h
529da0c48c4Sopenharmony_ci   include 0x5d8
530da0c48c4Sopenharmony_ci    _FEATURES_H 1
531da0c48c4Sopenharmony_ci    __KERNEL_STRICT_NAMES 
532da0c48c4Sopenharmony_ci    __USE_ANSI 1
533da0c48c4Sopenharmony_ci    __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
534da0c48c4Sopenharmony_ci    _BSD_SOURCE 1
535da0c48c4Sopenharmony_ci    _SVID_SOURCE 1
536da0c48c4Sopenharmony_ci    _POSIX_SOURCE 1
537da0c48c4Sopenharmony_ci    _POSIX_C_SOURCE 200809L
538da0c48c4Sopenharmony_ci    __USE_POSIX_IMPLICITLY 1
539da0c48c4Sopenharmony_ci    __USE_POSIX 1
540da0c48c4Sopenharmony_ci    __USE_POSIX2 1
541da0c48c4Sopenharmony_ci    __USE_POSIX199309 1
542da0c48c4Sopenharmony_ci    __USE_POSIX199506 1
543da0c48c4Sopenharmony_ci    __USE_XOPEN2K 1
544da0c48c4Sopenharmony_ci    __USE_ISOC95 1
545da0c48c4Sopenharmony_ci    __USE_ISOC99 1
546da0c48c4Sopenharmony_ci    __USE_XOPEN2K8 1
547da0c48c4Sopenharmony_ci    _ATFILE_SOURCE 1
548da0c48c4Sopenharmony_ci    __USE_MISC 1
549da0c48c4Sopenharmony_ci    __USE_BSD 1
550da0c48c4Sopenharmony_ci    __USE_SVID 1
551da0c48c4Sopenharmony_ci    __USE_ATFILE 1
552da0c48c4Sopenharmony_ci    __USE_FORTIFY_LEVEL 0
553da0c48c4Sopenharmony_ci   /include
554da0c48c4Sopenharmony_ci   file /usr/include/stdc-predef.h
555da0c48c4Sopenharmony_ci    include 0x733
556da0c48c4Sopenharmony_ci     _STDC_PREDEF_H 1
557da0c48c4Sopenharmony_ci     __STDC_IEC_559__ 1
558da0c48c4Sopenharmony_ci     __STDC_IEC_559_COMPLEX__ 1
559da0c48c4Sopenharmony_ci     __STDC_ISO_10646__ 201103L
560da0c48c4Sopenharmony_ci     __STDC_NO_THREADS__ 1
561da0c48c4Sopenharmony_ci    /include
562da0c48c4Sopenharmony_ci   /file
563da0c48c4Sopenharmony_ci   include 0x755
564da0c48c4Sopenharmony_ci    __GNU_LIBRARY__ 6
565da0c48c4Sopenharmony_ci    __GLIBC__ 2
566da0c48c4Sopenharmony_ci    __GLIBC_MINOR__ 15
567da0c48c4Sopenharmony_ci    __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
568da0c48c4Sopenharmony_ci    __GLIBC_HAVE_LONG_LONG 1
569da0c48c4Sopenharmony_ci   /include
570da0c48c4Sopenharmony_ci   file /usr/include/sys/cdefs.h
571da0c48c4Sopenharmony_ci    include 0x783
572da0c48c4Sopenharmony_ci     _SYS_CDEFS_H 1
573da0c48c4Sopenharmony_ci     __LEAF , __leaf__
574da0c48c4Sopenharmony_ci     __LEAF_ATTR __attribute__ ((__leaf__))
575da0c48c4Sopenharmony_ci     __THROW __attribute__ ((__nothrow__ __LEAF))
576da0c48c4Sopenharmony_ci     __THROWNL __attribute__ ((__nothrow__))
577da0c48c4Sopenharmony_ci     __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct
578da0c48c4Sopenharmony_ci     __P(args) args
579da0c48c4Sopenharmony_ci     __PMT(args) args
580da0c48c4Sopenharmony_ci     __CONCAT(x,y) x ## y
581da0c48c4Sopenharmony_ci     __STRING(x) #x
582da0c48c4Sopenharmony_ci     __ptr_t void *
583da0c48c4Sopenharmony_ci     __long_double_t long double
584da0c48c4Sopenharmony_ci     __BEGIN_DECLS 
585da0c48c4Sopenharmony_ci     __END_DECLS 
586da0c48c4Sopenharmony_ci     __BEGIN_NAMESPACE_STD 
587da0c48c4Sopenharmony_ci     __END_NAMESPACE_STD 
588da0c48c4Sopenharmony_ci     __USING_NAMESPACE_STD(name) 
589da0c48c4Sopenharmony_ci     __BEGIN_NAMESPACE_C99 
590da0c48c4Sopenharmony_ci     __END_NAMESPACE_C99 
591da0c48c4Sopenharmony_ci     __USING_NAMESPACE_C99(name) 
592da0c48c4Sopenharmony_ci     __bounded 
593da0c48c4Sopenharmony_ci     __unbounded 
594da0c48c4Sopenharmony_ci     __ptrvalue 
595da0c48c4Sopenharmony_ci     __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
596da0c48c4Sopenharmony_ci     __bos0(ptr) __builtin_object_size (ptr, 0)
597da0c48c4Sopenharmony_ci     __fortify_function __extern_always_inline __attribute_artificial__
598da0c48c4Sopenharmony_ci     __warndecl(name,msg) extern void name (void) __attribute__((__warning__ (msg)))
599da0c48c4Sopenharmony_ci     __warnattr(msg) __attribute__((__warning__ (msg)))
600da0c48c4Sopenharmony_ci     __errordecl(name,msg) extern void name (void) __attribute__((__error__ (msg)))
601da0c48c4Sopenharmony_ci     __flexarr []
602da0c48c4Sopenharmony_ci     __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias))
603da0c48c4Sopenharmony_ci     __REDIRECT_NTH(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROW
604da0c48c4Sopenharmony_ci     __REDIRECT_NTHNL(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROWNL
605da0c48c4Sopenharmony_ci     __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
606da0c48c4Sopenharmony_ci     __ASMNAME2(prefix,cname) __STRING (prefix) cname
607da0c48c4Sopenharmony_ci     __attribute_malloc__ __attribute__ ((__malloc__))
608da0c48c4Sopenharmony_ci     __attribute_pure__ __attribute__ ((__pure__))
609da0c48c4Sopenharmony_ci     __attribute_const__ __attribute__ ((__const__))
610da0c48c4Sopenharmony_ci     __attribute_used__ __attribute__ ((__used__))
611da0c48c4Sopenharmony_ci     __attribute_noinline__ __attribute__ ((__noinline__))
612da0c48c4Sopenharmony_ci     __attribute_deprecated__ __attribute__ ((__deprecated__))
613da0c48c4Sopenharmony_ci     __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
614da0c48c4Sopenharmony_ci     __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b)))
615da0c48c4Sopenharmony_ci     __nonnull(params) __attribute__ ((__nonnull__ params))
616da0c48c4Sopenharmony_ci     __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__))
617da0c48c4Sopenharmony_ci     __wur 
618da0c48c4Sopenharmony_ci     __always_inline __inline __attribute__ ((__always_inline__))
619da0c48c4Sopenharmony_ci     __attribute_artificial__ __attribute__ ((__artificial__))
620da0c48c4Sopenharmony_ci     __extern_inline extern __inline
621da0c48c4Sopenharmony_ci     __extern_always_inline extern __always_inline
622da0c48c4Sopenharmony_ci     __va_arg_pack() __builtin_va_arg_pack ()
623da0c48c4Sopenharmony_ci     __va_arg_pack_len() __builtin_va_arg_pack_len ()
624da0c48c4Sopenharmony_ci     __restrict_arr __restrict
625da0c48c4Sopenharmony_ci     __glibc_unlikely(cond) __builtin_expect((cond), 0)
626da0c48c4Sopenharmony_ci    /include
627da0c48c4Sopenharmony_ci    file /usr/include/bits/wordsize.h
628da0c48c4Sopenharmony_ci     include 0x8fa
629da0c48c4Sopenharmony_ci      __WORDSIZE 64
630da0c48c4Sopenharmony_ci      __WORDSIZE_TIME64_COMPAT32 1
631da0c48c4Sopenharmony_ci      __SYSCALL_WORDSIZE 64
632da0c48c4Sopenharmony_ci     /include
633da0c48c4Sopenharmony_ci    /file
634da0c48c4Sopenharmony_ci    include 0x910
635da0c48c4Sopenharmony_ci     __LDBL_REDIR1(name,proto,alias) name proto
636da0c48c4Sopenharmony_ci     __LDBL_REDIR(name,proto) name proto
637da0c48c4Sopenharmony_ci     __LDBL_REDIR1_NTH(name,proto,alias) name proto __THROW
638da0c48c4Sopenharmony_ci     __LDBL_REDIR_NTH(name,proto) name proto __THROW
639da0c48c4Sopenharmony_ci     __LDBL_REDIR_DECL(name) 
640da0c48c4Sopenharmony_ci     __REDIRECT_LDBL(name,proto,alias) __REDIRECT (name, proto, alias)
641da0c48c4Sopenharmony_ci     __REDIRECT_NTH_LDBL(name,proto,alias) __REDIRECT_NTH (name, proto, alias)
642da0c48c4Sopenharmony_ci    /include
643da0c48c4Sopenharmony_ci   /file
644da0c48c4Sopenharmony_ci   file /usr/include/gnu/stubs.h
645da0c48c4Sopenharmony_ci    file /usr/include/gnu/stubs-64.h
646da0c48c4Sopenharmony_ci     include 0x945
647da0c48c4Sopenharmony_ci      __stub_bdflush 
648da0c48c4Sopenharmony_ci      __stub_chflags 
649da0c48c4Sopenharmony_ci      __stub_fattach 
650da0c48c4Sopenharmony_ci      __stub_fchflags 
651da0c48c4Sopenharmony_ci      __stub_fdetach 
652da0c48c4Sopenharmony_ci      __stub_getmsg 
653da0c48c4Sopenharmony_ci      __stub_gtty 
654da0c48c4Sopenharmony_ci      __stub_lchmod 
655da0c48c4Sopenharmony_ci      __stub_putmsg 
656da0c48c4Sopenharmony_ci      __stub_revoke 
657da0c48c4Sopenharmony_ci      __stub_setlogin 
658da0c48c4Sopenharmony_ci      __stub_sigreturn 
659da0c48c4Sopenharmony_ci      __stub_sstk 
660da0c48c4Sopenharmony_ci      __stub_stty 
661da0c48c4Sopenharmony_ci     /include
662da0c48c4Sopenharmony_ci    /file
663da0c48c4Sopenharmony_ci   /file
664da0c48c4Sopenharmony_ci  /file
665da0c48c4Sopenharmony_ci  include 0x99d
666da0c48c4Sopenharmony_ci   __need_size_t 
667da0c48c4Sopenharmony_ci   __need_NULL 
668da0c48c4Sopenharmony_ci  /include
669da0c48c4Sopenharmony_ci  file /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/stddef.h
670da0c48c4Sopenharmony_ci   include 0x9ad
671da0c48c4Sopenharmony_ci    __size_t__ 
672da0c48c4Sopenharmony_ci    __SIZE_T__ 
673da0c48c4Sopenharmony_ci    _SIZE_T 
674da0c48c4Sopenharmony_ci    _SYS_SIZE_T_H 
675da0c48c4Sopenharmony_ci    _T_SIZE_ 
676da0c48c4Sopenharmony_ci    _T_SIZE 
677da0c48c4Sopenharmony_ci    __SIZE_T 
678da0c48c4Sopenharmony_ci    _SIZE_T_ 
679da0c48c4Sopenharmony_ci    _BSD_SIZE_T_ 
680da0c48c4Sopenharmony_ci    _SIZE_T_DEFINED_ 
681da0c48c4Sopenharmony_ci    _SIZE_T_DEFINED 
682da0c48c4Sopenharmony_ci    _BSD_SIZE_T_DEFINED_ 
683da0c48c4Sopenharmony_ci    _SIZE_T_DECLARED 
684da0c48c4Sopenharmony_ci    ___int_size_t_h 
685da0c48c4Sopenharmony_ci    _GCC_SIZE_T 
686da0c48c4Sopenharmony_ci    _SIZET_ 
687da0c48c4Sopenharmony_ci    __size_t 
688da0c48c4Sopenharmony_ci    NULL ((void *)0)
689da0c48c4Sopenharmony_ci   /include
690da0c48c4Sopenharmony_ci  /file
691da0c48c4Sopenharmony_ci  file /usr/include/xlocale.h
692da0c48c4Sopenharmony_ci   _XLOCALE_H 1
693da0c48c4Sopenharmony_ci  /file
694da0c48c4Sopenharmony_ci /file
695da0c48c4Sopenharmony_ci HELLO "world"
696da0c48c4Sopenharmony_ci/file
697da0c48c4Sopenharmony_ciEOF
698da0c48c4Sopenharmony_ci
699da0c48c4Sopenharmony_citestfiles testfile-macros-0xff
700da0c48c4Sopenharmony_citestrun_compare ${abs_builddir}/dwarf-getmacros testfile-macros-0xff 0xb <<\EOF
701da0c48c4Sopenharmony_ciinvalid opcode
702da0c48c4Sopenharmony_ciEOF
703da0c48c4Sopenharmony_citestrun_compare ${abs_builddir}/dwarf-getmacros testfile-macros-0xff 0xb '' <<\EOF
704da0c48c4Sopenharmony_ciopcode 255 with 0 arguments
705da0c48c4Sopenharmony_cifile /home/petr/proj/elfutils/master/elfutils/x.c
706da0c48c4Sopenharmony_ci FOO 0
707da0c48c4Sopenharmony_ci/file
708da0c48c4Sopenharmony_ciEOF
709da0c48c4Sopenharmony_ci
710da0c48c4Sopenharmony_ciexit 0
711