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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [patches1.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed patches
3
// patches file
4
// From: david.binderman@pmsr.philips.co.uk
5
// Date:     Wed, 6 Oct 93 17:05:54 BST
6
// Subject:  Reno 1.2 bug fix
7
// Message-ID: <9310061605.AA04160@pmsr.philips.co.uk>
8
 
9
int type(float)       { return 1; }
10
int type(double)      { return 2; }
11
int type(long double) { return 3; }
12
 
13
extern "C" int printf( const char *, ...);
14
 
15
int main()
16
{
17
      int i = 0;
18
      if (type(0.0) != 2)
19
              ++i;
20
      if (i > 0)
21
        { printf ("FAIL\n"); return 1; }
22
      else
23
        printf ("PASS\n");
24
}

powered by: WebSVN 2.1.0

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