Changeset ca26509 for src/examples
- Timestamp:
- Jun 14, 2016, 3:26:24 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, with_gc
- Children:
- f2d51eb
- Parents:
- ee51534
- Location:
- src/examples
- Files:
-
- 1 edited
- 9 moved
Legend:
- Unmodified
- Added
- Removed
-
src/examples/Attributes.c
ree51534 rca26509 56 56 otype @widest(otype t); 57 57 @otype(x) *y; // gcc: otypeof(x) *y; 58 const @widest(double) *w; // gcc: const otypeof(x) *w;59 * @otype(3 + 4) z; // cfa declaration syntax58 // const @widest(double) *w; // gcc: const otypeof(x) *w; 59 // * @otype(3 + 4) z; // cfa declaration syntax 60 60 y = @max; 61 61 z = @max(x) + @size(int); -
src/examples/Initialization.c
ree51534 rca26509 12 12 } a = { .w : [2] }; 13 13 14 struct { int a[3], b; } w [] = { [0].a : {1}, [0].b : 1, [1].a[0] : 2 };14 struct { int a[3], b; } w [] = { [0].a : {1}, [0].b : 3, [1].a[0] : 2 }; 15 15 16 16 struct { -
src/examples/Misc.c
ree51534 rca26509 1 // interesting corner cases 2 1 3 int a; 2 4 int b; -
src/examples/abstype.c
ree51534 rca26509 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Apr 6 22:16:08 201613 // Update Count : 812 // Last Modified On : Tue Jun 14 14:27:48 2016 13 // Update Count : 9 14 14 // 15 15 … … 21 21 } 22 22 23 forall( otype T ) lvalue T *?( T * );23 forall( otype T ) lvalue T *?( T * ); 24 24 int ?++( int * ); 25 25 int ?=?( int *, int ); 26 forall( dtype DT ) DT * ?=?( DT **, DT * );26 forall( dtype DT ) DT * ?=?( DT **, DT * ); 27 27 28 28 otype U = int *;
Note:
See TracChangeset
for help on using the changeset viewer.