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

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

#include <string.h>

typedef struct gs_imager_state_s {
  struct {
    int half_width;
    int cap;
    float miter_limit;
  } line_params;
} gs_imager_state;
static const gs_imager_state gstate_initial = { { 1 } };
void gstate_path_memory(gs_imager_state *pgs) {
  /**pgs = gstate_initial; not yet supported by sdcc */
  memcpy (pgs, &gstate_initial, sizeof (gstate_initial));
}
int gs_state_update_overprint(void)
{
  return gstate_initial.line_params.half_width;
}

void
testTortureExecute (void)
{
  if (gs_state_update_overprint() != 1)
    ASSERT (0);
  return;
}