summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20000412-3.c
blob: 65bcb650c3a7659d6d7bfc60294ab5569b4d0226 (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
42
43
44
45
46
47
48
49
50
51
52
/*
   20000412-3.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

// TODO: Enable when struct passing is supported.
#if 0
typedef struct {
  char y;
  char x[32];
} X;

int f(X x, X y);

int z (void)
{
  X xxx;
  xxx.x[0] =
  xxx.x[31] = '0';
  xxx.y = 0xf;
  return f (xxx, xxx);
}
#endif

void
testTortureExecute (void)
{
#if 0
  int val;

  val = z ();
  if (val != 0x60)
    ASSERT (0);
  return;
#endif
}

#if 0
int f(X x, X y)
{
  if (x.y != y.y)
    return 'F';

  return x.x[0] + y.x[0];
}
#endif