| 1 |
// { dg-do assemble } |
| 2 |
// GROUPS passed patches |
| 3 |
// patches file |
| 4 |
// From: [email protected] |
| 5 |
// Date: Wed, 6 Oct 93 17:05:54 BST |
| 6 |
// Subject: Reno 1.2 bug fix |
| 7 |
// Message-ID: <[email protected]> |
| 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 |
} |