Changes in src/tests/Scope.c [10dc7491:62edde5]
- File:
-
- 1 edited
-
src/tests/Scope.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Scope.c
r10dc7491 r62edde5 3 3 typedef float t; 4 4 y z; 5 //otype u = struct { int a; double b; }; 6 typedef struct { int a; double b; } u; 5 type u = struct { int a; double b; }; 7 6 int f( int y ); 8 7 y q; 9 struct x { int x; };10 8 11 9 y w( y y, u v ) { 12 // otype x | { x t(u); }; 13 void ?{}(struct x *); 14 void ^?{}(struct x *); 15 extern struct x t( u ); 10 type x | { x t(u); }; 16 11 u u = y; 17 structx z = t(u);12 x z = t(u); 18 13 } 19 14 20 15 y p; 21 16 22 trait has_u( otype z ) {17 context has_u( type z ) { 23 18 z u(z); 24 19 }; 25 20 26 forall( otype t | has_u( t ) )21 forall( type t | has_u( t ) ) 27 22 y q( t the_t ) { 28 23 t y = u( the_t ); … … 45 40 } 46 41 47 void some_func() {}48 49 42 t g( void ) { 50 43 typedef char x; 51 //try {44 try { 52 45 some_func(); 53 //} catch ( x x ) {54 //t y = x;55 //}46 } catch ( x x ) { 47 t y = x; 48 } 56 49 x z; 57 50 }
Note:
See TracChangeset
for help on using the changeset viewer.