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

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

#if 0 // TODO: Enable when struct can be returned!
struct A {
  unsigned int a, b, c;
};

struct A bar (void)
{
  return (struct A) { 176, 52, 31 };
}

void baz (struct A *a)
{
  if (a->a != 176 || a->b != 52 || a->c != 31)
    ASSERT (0);
}
#endif
void
testTortureExecute (void)
{
#if 0
  struct A d;

  d = ({ ({ bar (); }); });
  baz (&d);
#endif
}