Ignore:
Timestamp:
Jul 26, 2018, 5:21:03 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
dccad9f
Parents:
56de5932 (diff), a95c117 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/structMember.c

    r56de5932 r4e1572f  
    1 typedef int T;
     1typedef int TD;
     2extern struct TTT {};
    23
    34struct S {
     
    89        int m4, m5, m6;
    910        int *m7, *m8, *m9;
    10         int (*m10)();
    11         int *(*m11)(int);
    12         T (T);
     11        __extension__ int (*m10)();
     12        __extension__ int *(*m11)(int);
     13//      TD (TD);
    1314
    14 // Cforall extensions
     15// Cforall declarations
    1516
    1617        * int m12, m13;
    1718        * [ * int ] (int) m14;
    18         int ;
    19         int , , ;
    20         int * , , ;
    21         int *, *, *;
    22         * int , , ;
    23         int (*)();
    24         int (**)( int );
    25         T ;
    2619
    27 // errors
     20// C anonymous declarations (padding)
    2821
    29 //    void f(void);
     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        int;
     56        TD;
     57        unsigned int;
     58        __extension__ long double;
     59        _Complex;
     60        double _Complex;
     61        volatile zero_t;
     62        const one_t;
     63        S;
     64        .S;
     65        S.T;
     66        .S.T;
     67        forall( otype S, otype T ) struct W {
     68                struct X {};
     69        };
     70        W(int);
     71        W(int).X;
    3072};
    3173
    3274struct S s;
     75
     76// Cforall Plan 9 declarations
     77
     78struct UUU {};
     79extern struct SSS {
     80        inline struct WWW {};
     81        inline UUU;
     82        inline UUU *, **;
     83        inline UUU (*)( int p );
     84        inline int;
     85        inline int *;
     86        inline * int;
     87        inline int (*)( int p );
     88        inline * [int](int p);
     89};
    3390
    3491union U {
Note: See TracChangeset for help on using the changeset viewer.