Changeset 10dc7491 for src/tests/Scope.c
- Timestamp:
- Jun 22, 2016, 4:35:32 PM (8 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:
- 8b52686
- Parents:
- 6bc4734
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Scope.c
r6bc4734 r10dc7491 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 … … 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.