Changeset f1ee72e for src/tests/Scope.c
- Timestamp:
- Jun 23, 2016, 12:23:00 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:
- 4d3ca1d8
- Parents:
- c2931ea (diff), d56c05d0 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Scope.c
rc2931ea rf1ee72e 3 3 typedef float t; 4 4 y z; 5 otype u = struct { int a; double b; }; 5 //otype u = struct { int a; double b; }; 6 typedef struct { int a; double b; } u; 6 7 int f( int y ); 7 8 y q; 9 struct x { int x; }; 8 10 9 11 y w( y y, u v ) { 10 otype x | { x t(u); }; 12 // otype x | { x t(u); }; 13 void ?{}(struct x *); 14 void ^?{}(struct x *); 15 extern struct x t( u ); 11 16 u u = y; 12 x z = t(u);17 struct x z = t(u); 13 18 } 14 19 15 20 y p; 16 21 17 context has_u( otype z ) {22 trait has_u( otype z ) { 18 23 z u(z); 19 24 }; … … 40 45 } 41 46 47 void some_func() {} 48 42 49 t g( void ) { 43 50 typedef char x; 44 try {51 // try { 45 52 some_func(); 46 } catch ( x x ) {47 t y = x;48 }53 // } catch ( x x ) { 54 // t y = x; 55 // } 49 56 x z; 50 57 }
Note:
See TracChangeset
for help on using the changeset viewer.