summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20020206-1.c
blob: 8450800a1768851ca2fb8e401fc8b4ac5843be43 (plain)
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
struct A {
  unsigned int a, b, c;
};

extern void abort (void);
extern void exit (int);

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)
    abort ();
}

int main ()
{
  struct A d;

  d = ({ ({ bar (); }); });
  baz (&d);
  exit (0);
}