OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [operators30.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do run  }
// { dg-do run  }
// GROUPS passed operators
// GROUPS passed operators
// opr-mm file
// opr-mm file
// Date: Thu, 2 Jun 94 10:00:29 +0200
// Date: Thu, 2 Jun 94 10:00:29 +0200
// From: chatty@cenatls.cena.dgac.fr (Stephane Chatty)
// From: chatty@cenatls.cena.dgac.fr (Stephane Chatty)
// Message-Id: <9406020800.AA14201@geant.cenatls.cena.dgac.fr>
// Message-Id: <9406020800.AA14201@geant.cenatls.cena.dgac.fr>
// Subject: result of operator -- with g++-2.5.8
// Subject: result of operator -- with g++-2.5.8
#include 
#include 
void nop()
void nop()
{
{
}
}
int main ()
int main ()
{
{
        int a = 2;
        int a = 2;
        if (----a == 0)
        if (----a == 0)
                nop ();
                nop ();
        if (a == 0)
        if (a == 0)
                printf("PASS\n");
                printf("PASS\n");
        else
        else
                { printf("FAIL\n"); return 1; }
                { printf("FAIL\n"); return 1; }
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.