source: tests/zombies/structMember.cfa @ 506d4f0

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 506d4f0 was 66812dd, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

convert tests to always print output (no empty .expect files)

  • Property mode set to 100644
File size: 1.4 KB
Line 
1typedef int TD;
2extern struct TTT {};
3
4struct S {
5        int m1:3, m2:4;
6        int :2;
7        int :3, :4;
8        int m3;
9        int m4, m5, m6;
10        int *m7, *m8, *m9;
11        __extension__ int (*m10)();
12        __extension__ int *(*m11)(int);
13//      TD (TD);
14
15// Cforall declarations
16
17        * int m12, m13;
18        * [ * int ] (int) m14;
19
20// C anonymous declarations (padding)
21
22        int :4;
23        int :4, :6;
24
25// Cforall anonymous declarations (padding)
26
27        int @;
28        TD @;
29        int @, @, @;
30        int * @ , @, @;
31        int * @, * @, * @;
32        * int @, @, @;
33        struct TTT @;
34        TTT @, @;
35        int @ :4, @ :6;
36        * int @, @;
37        int (*@)();
38        int (*@)(int), (*@)(int);
39        * [int](int) @, @;
40        int (**@)( int );
41        * * [int](int) @;
42
43// C aggregate open declarations
44
45        __extension__ union { int i; };
46        struct T { int k; };
47
48// Cforall forward declaration
49
50        struct PPP;
51        __extension__ struct QQQ;
52
53// C useless declarations
54
55#ifdef ERROR
56        int;
57        TD;
58        unsigned int;
59        __extension__ long double;
60        _Complex;
61        double _Complex;
62        volatile zero_t;
63        const one_t;
64        S;
65        .S;
66        S.T;
67        .S.T;
68        forall( otype S, otype T ) struct W {
69                struct X {};
70        };
71        W(int);
72        W(int).X;
73#endif // ERROR
74};
75
76struct S s;
77
78// Cforall Plan 9 declarations
79
80struct UUU {};
81extern struct SSS {
82        inline struct WWW {};
83        inline UUU;
84        inline UUU *, **;
85        inline UUU (*)( int p );
86        inline int;
87        inline int *;
88        inline * int;
89        inline int (*)( int p );
90        inline * [int](int p);
91};
92
93union U {
94        [5] int m1;
95        int m2[5];
96        * int m3;
97        int *m4;
98} u;
99
100// Local Variables: //
101// tab-width: 4 //
102// End: //
Note: See TracBrowser for help on using the repository browser.