summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-930622-2.c
blob: 7f002b9f7ae8b9151b07399004faf4054f98746c (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
   930622-2.c from the execute part of the gcc torture suite.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

// Todo: Enable when sdcc supports long double and long long!
#if 0
long double
ll_to_ld (long long n)
{
  return n;
}

long long
ld_to_ll (long double n)
{
  return n;
}
#endif

void
testTortureExecute (void)
{
#if 0
  long long n;

  if (ll_to_ld (10LL) != 10.0)
    ASSERT (0);

  if (ld_to_ll (10.0) != 10)
    ASSERT (0);

  return;
#endif
}