/
parse_00.t
187 lines (154 loc) · 3.58 KB
/
parse_00.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
#!perl
# Copyright (C) 2008-2010, Parrot Foundation.
# $Id$
use strict;
use warnings;
use lib ('./lib', '../../lib');
use Parrot::Test::NCIGENAST;
plan tests => 20;
parse_success(<<'CODE', '__extension__00.c');
extern double strtod (__const char *__restrict __nptr, char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
enum { MSG_OOB = 0x01 };
__extension__ typedef signed long long int __int64_t;
__extension__ typedef struct { int __val[2]; } __fsid_t;
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, __gnuc_va_list, int *__restrict);
struct random_data
{
int32_t rand_type;
};
struct _IO_FILE {
char _unused2[15 * 6];
char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
};
struct random_data
{
int32_t rand_type;
};
int a = 8 - sizeof(int);
char _unused2 = 15 + 6;
int b = 12;
int a = 10 * sizeof(int) * 13;
int a = 8 * 3;
typedef int Oid;
int32_t Oid;
int Oid;
typedef unsigned int Oid;
typedef union
{
char __size[4];
int __align;
} pthread_mutexattr_t;
typedef union
{
struct __pthread_mutex_s
{
int __lock;
unsigned int __count;
int __owner;
int __kind;
unsigned int __nusers;
__extension__ union
{
int __spins;
__pthread_slist_t __list;
};
} __data;
char __size[24];
long int __align;
} pthread_mutex_t;
__extension__ typedef void * __timer_t;
CODE
parse_success(<<'CODE', '__attribute__.c');
extern double strtod (__const char *__restrict __nptr, char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
CODE
parse_success(<<'CODE', 'enums.c');
enum { MSG_OOB = 0x01 };
CODE
parse_success(<<'CODE', '__extension__01.c');
__extension__ typedef signed long long int __int64_t;
CODE
parse_success(<<'CODE', '__extension__02.c');
__extension__ typedef struct { int __val[2]; } __fsid_t;
CODE
parse_success(<<'CODE', 'gnu_va_arg.c');
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, __gnuc_va_list, int *__restrict);
CODE
parse_success(<<'CODE', 'int_32_t_declaration.c');
struct random_data
{
int32_t rand_type;
};
CODE
parse_success(<<'CODE', 'struct_declaration_00.c');
struct _IO_FILE {
char _unused2[15 * 6];
char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
};
CODE
parse_success(<<'CODE', 'struct_declaration_01.c' );
struct random_data
{
int32_t rand_type;
};
CODE
parse_success(<<'CODE', 'times_01.c');
int a = 8 - sizeof(int);
CODE
parse_success(<<'CODE', 'times_02.c');
char _unused2 = 15 + 6;
CODE
parse_success(<<'CODE', 'times_03.c');
int b = 12;
int a = 10 * sizeof(int) * 13;
CODE
parse_success(<<'CODE', 'times_04.c');
int a = 8 * 3;
CODE
parse_success(<<'CODE', 'typedef_01.c');
typedef int Oid;
CODE
parse_success(<<'CODE', 'typedef_02.c');
int32_t Oid;
CODE
parse_success(<<'CODE', 'typedef_03.c');
int Oid;
CODE
parse_success(<<'CODE', 'typedef.c');
typedef unsigned int Oid;
CODE
parse_success(<<'CODE', 'typedef_union_00.c');
typedef union
{
char __size[4];
int __align;
} pthread_mutexattr_t;
CODE
parse_success(<<'CODE', 'typedef_union_01.c');
typedef union
{
struct __pthread_mutex_s
{
int __lock;
unsigned int __count;
int __owner;
int __kind;
unsigned int __nusers;
__extension__ union
{
int __spins;
__pthread_slist_t __list;
};
} __data;
char __size[24];
long int __align;
} pthread_mutex_t;
CODE
parse_success(<<'CODE', 'void_star.c');
__extension__ typedef void * __timer_t;
CODE
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4: