Changeset 0b2961f for src/Tests/SynTree/TypeGenerator.c
- Timestamp:
- Jun 9, 2015, 3:19:04 PM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tests/SynTree/TypeGenerator.c
r81419b5 r0b2961f 9 9 [int] h( * List(int) p ); // new declaration syntax 10 10 11 struct(type T | addable(T) ) node { T data; struct(T) node *next; }; 11 struct(type T) S1; // forward definition 12 struct(type T) S1 { T i; }; // actual definition 13 struct(int) S1 v1, *p; // expansion and instantiation 14 struct(type T)(int) S2 { T i; } v2; // actual definition, expansion and instantiation 15 struct(type T)(int) { T i; } v2; // anonymous actual definition, expansion and instantiation 16 17 struct( type T | addable(T) ) node { T data; struct(T) node *next; }; 12 18 type List(type T) = struct(T) node *; 13 19 List(int) my_list;
Note: See TracChangeset
for help on using the changeset viewer.