blob: c93bcdfa1b7de3189b246f34ad604de6f3f595eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
20040831-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#pragma disable_warning 93
#endif
/* This testcase was being miscompiled, because operand_equal_p
returned that (unsigned long) d and (long) d are equal. */
void
testTortureExecute (void)
{
double d = -12.0;
long l = (d > 10000) ? (unsigned long) d : (long) d;
if (l != -12)
ASSERT (0);
return;
}
|