summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20000227-1.c
blob: 94e59fe99374cfedd7040e3bfdc0e1e54fa0fd29 (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
/*
   20000227-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

static const unsigned char f[] = "\0\377";
static const unsigned char g[] = "\0ÿ";

void
testTortureExecute (void)
{
  if (sizeof f != 3 || sizeof g != 3)
    ASSERT (0);
  if (f[0] != g[0])
    ASSERT (0);
  if (f[1] != g[1])
    ASSERT (0);
  if (f[2] != g[2])
    ASSERT (0);
  return;
}