OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

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

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

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed patches
// GROUPS passed patches
// patches file
// patches file
// From: david.binderman@pmsr.philips.co.uk
// From: david.binderman@pmsr.philips.co.uk
// Date:     Wed, 6 Oct 93 17:05:54 BST
// Date:     Wed, 6 Oct 93 17:05:54 BST
// Subject:  Reno 1.2 bug fix
// Subject:  Reno 1.2 bug fix
// Message-ID: <9310061605.AA04160@pmsr.philips.co.uk>
// Message-ID: <9310061605.AA04160@pmsr.philips.co.uk>
int type(float)       { return 1; }
int type(float)       { return 1; }
int type(double)      { return 2; }
int type(double)      { return 2; }
int type(long double) { return 3; }
int type(long double) { return 3; }
extern "C" int printf( const char *, ...);
extern "C" int printf( const char *, ...);
int main()
int main()
{
{
      int i = 0;
      int i = 0;
      if (type(0.0) != 2)
      if (type(0.0) != 2)
              ++i;
              ++i;
      if (i > 0)
      if (i > 0)
        { printf ("FAIL\n"); return 1; }
        { printf ("FAIL\n"); return 1; }
      else
      else
        printf ("PASS\n");
        printf ("PASS\n");
}
}
 
 

powered by: WebSVN 2.1.0

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