Changeset 8a95629 for src/Tests


Ignore:
Timestamp:
Jun 10, 2015, 2:26:44 PM (11 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
b1d6dd5, b5c5684
Parents:
0b2961f
Message:

fix parsing error for syntax error message, work on regression testing

Location:
src/Tests
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • src/Tests/SynTree/Forall.c

    r0b2961f r8a95629  
     1int ?=?( int*, int );
     2float ?=?( float*, float );
     3int * ?=?( int **, int * );
     4float * ?=?( float **, float * );
     5char ?=?( char*, char );
     6void (* ?=?( void (**)(void), void (*)(void) ))(void);
     7
     8void g1() {
     9        forall( type T ) T f( T );
     10        void f( int );
     11        void h( void (*p)(void) );
     12 
     13        int x;
     14        void (*y)(void);
     15        char z;
     16        float w;
     17 
     18        f( x );
     19        f( y );
     20        f( z );
     21        f( w );
     22        h( f( y ) );
     23}
     24
     25void g2() {
     26        forall( type T ) void f( T, T );
     27        forall( type T, type U ) void f( T, U );
     28 
     29        int x;
     30        float y;
     31        int *z;
     32        float *w;
     33 
     34        f( x, y );
     35        f( z, w );
     36        f( x, z );
     37}
     38
    139typedef forall ( type T ) int (*f)( int );
    240
  • src/Tests/Syntax/Attributes.c

    r0b2961f r8a95629  
    2121    return 7;
    2222}
     23
     24int @voon;
     25double @voon;
     26
     27int @bort(int);
     28int @bort(double);
     29
     30void g( int );
     31
     32void f() {
     33        float x;
     34        double x;
     35        @bort(x);
     36        @bort(int);
     37        g( @voon );
     38}
     39
     40// Local Variables: //
     41// tab-width: 4 //
     42// End: //
Note: See TracChangeset for help on using the changeset viewer.