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/TypeGenerator.c

    r81419b5 r0b2961f  
    99[int] h( * List(int) p ); // new declaration syntax
    1010
    11 struct(type T | addable(T) ) node { T data; struct(T) node *next; };
     11struct(type T) S1;                      // forward definition
     12struct(type T) S1 { T i; };             // actual definition
     13struct(int) S1 v1, *p;                  // expansion and instantiation
     14struct(type T)(int) S2 { T i; } v2;     // actual definition, expansion and instantiation
     15struct(type T)(int) { T i; } v2;        // anonymous actual definition, expansion and instantiation
     16
     17struct( type T | addable(T) ) node { T data; struct(T) node *next; };
    1218type List(type T) = struct(T) node *;
    1319List(int) my_list;
Note: See TracChangeset for help on using the changeset viewer.