blob: e3bead2cbe5d17a9df8e9a38bbc41622f5fe7e96 (
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
|
/*
980205.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#pragma disable_warning 93
#endif
#include <stdarg.h>
void fdouble (double one, ...)
{
double value;
va_list ap;
va_start (ap, one);
value = va_arg (ap, double);
va_end (ap);
#ifndef __SDCC_pdk14 // Lack of memory
if (one != 1.0 || value != 2.0)
ASSERT (0);
#endif
}
void
testTortureExecute (void)
{
fdouble (1.0, 2.0);
return;
}
|