summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug1551947.c
blob: cf80edc97acaee51d80d066c4532dd3ebc61883c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
   bug1551947.c
*/

#include <testfwk.h>

__xdata float z;
__xdata float x = 1.0;

void
testBug (void)
{
#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
  z = x * x;
  ASSERT (z == 1.0);
#endif
}