blob: f3fc926d72b69f90b716d79d803540c5ed573812 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
20020720-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
#if 0 // TODO: Enable when fabs is supported!
/* Copyright (C) 2002 Free Software Foundation.
Ensure that fabs(x) < 0.0 optimization is working.
Written by Roger Sayle, 20th July 2002. */
extern double fabs (double);
extern void link_error (void);
void
foo (double x)
{
double p, q;
p = fabs (x);
q = 0.0;
if (p < q)
link_error ();
}
#endif
void
testTortureExecute (void)
{
#if 0
foo (1.0);
return;
#endif
}
void
link_error ()
{
ASSERT (0);
}
|