Changeset a65d92e for src/Tests/gcc


Ignore:
Timestamp:
Jun 5, 2015, 9:34:43 AM (10 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:
59db689
Parents:
44b5ca0
Message:

regression testing, second attempt

Location:
src/Tests/gcc
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/Tests/gcc/900407-1.c

    r44b5ca0 ra65d92e  
    1 foo (int a, int b, int *p)
    2 {
    3   int c;
    4   p[2] = a + 0x1000;
    5   c = b + 0xffff0000;
    6   if ((b + 0xffff0000) == 2)
    7     c++;
    8   p[2] = c;
     1foo ( int a, int b, int *p ) {
     2        int c;
     3        p[2] = a + 0x1000;
     4        c = b + 0xffff0000;
     5        if ( (b + 0xffff0000) == 2 )
     6                c++;
     7        p[2] = c;
    98}
     9
     10// Local Variables: //
     11// tab-width: 4 //
     12// End: //
  • src/Tests/gcc/900516-1.c

    r44b5ca0 ra65d92e  
    1 /* added 'int' to argument */
    2 f(int c) { return!(c?2.0:1.0); }
     1f( int c ) { return ! ( c ? 2.0 : 1.0 ); }
  • src/Tests/gcc/920301-1.c

    r44b5ca0 ra65d92e  
    1 f() {static void*t[];/*={&&x};*/ x:y:;}
    2 g() {static unsigned p[5];}
     1f() { static void*t[]; /*={&&x};*/ x:y: ; }
     2g() { static unsigned p[5]; }
  • src/Tests/gcc/920409-1.c

    r44b5ca0 ra65d92e  
    1 x() {int y;y>0.0?y:y-1;}
     1x() { int y; y > 0.0 ? y : y - 1; }
  • src/Tests/gcc/920409-2.c

    r44b5ca0 ra65d92e  
    1 double x() {int x1,x2;double v;
    2 if (((long)(x1-x2))<1)return -1.0;v=t(v);v=y(1,v>0.0?(int)v:((int)v-1));}
     1double x() {
     2        int x1, x2;
     3        double v;
     4        if ( ( (long)(x1-x2) ) < 1 )
     5                return -1.0;
     6        v = t( v );
     7        v = y( 1, v > 0.0 ? (int)v : ( (int)v - 1 ) );
     8}
     9
     10// Local Variables: //
     11// tab-width: 4 //
     12// End: //
  • src/Tests/gcc/920410-2.c

    r44b5ca0 ra65d92e  
    1 joe()
    2   {
    3     int j;
     1joe() {
     2        int j;
    43
    5     while ( 1 )
    6       {
    7         for ( j = 0; j < 4; j++ )
    8           ;
    9         for ( j = 0; j < 4; j++ )
    10           ;
    11       }
    12   }
     4        while ( 1 ) {
     5                for ( j = 0; j < 4; j++ );
     6                for ( j = 0; j < 4; j++ );
     7        }
     8}
     9
     10// Local Variables: //
     11// tab-width: 4 //
     12// End: //
  • src/Tests/gcc/920501-1.c

    r44b5ca0 ra65d92e  
    1 a() {int**b[]={&&c};c:;}
     1a() { int **b[] = { &&c }; c: ; }
  • src/Tests/gcc/920501-11.c

    r44b5ca0 ra65d92e  
    1 typedef struct{int s;}S;foo() {int i=(int)&(S) {(void*)((int)&(S) {1})};}
     1typedef struct{ int s; } S;
     2foo() {
     3        int i = (int)&(S){ (void*)((int)&(S) {1}) };
     4}
     5
     6// Local Variables: //
     7// tab-width: 4 //
     8// End: //
  • src/Tests/gcc/920501-19.c

    r44b5ca0 ra65d92e  
    1 long long x=0;y() {x=0;}
     1long long x = 0; y() { x = 0; }
Note: See TracChangeset for help on using the changeset viewer.