Ignore:
Timestamp:
Jun 9, 2015, 3:19:04 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
8a95629
Parents:
81419b5
Message:

fix warnings from prelude.cf, work on regression testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Tests/SynTree/Typedef.c

    r81419b5 r0b2961f  
    22
    33void f( void ) {
    4         int T( T );
    5         T( 3 );
     4    int T( T );
     5    T( 3 );
    66}
    77
    88struct {
    9         T (T);
     9    T (T);
    1010} fred = { 3 };
    1111
     
    1414
    1515int g(void) {
    16         double a;
     16    double a;
    1717}
    1818a c;
    1919
    20 // typedef x = 3, y = 3;  /* GCC */
     20typedef typeof(3) x, y;  // GCC
    2121
    22 // x p;
    23 // y q;
     22x p;
     23y q;
    2424
    2525int main() {
    26 //    typedef z = p = 3;
     26    typedef typeof(3) z, p;
     27    z w;
     28    p x;
    2729}
    2830
     
    3032
    3133typedef [10] * int arrayOf10Pointers;
    32 arrayOf10Pointers x;
     34arrayOf10Pointers array;
    3335typedef const * int constantPointer;
    3436typedef * [ int ]( [] int ) funcPtr;
Note: See TracChangeset for help on using the changeset viewer.