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

#include <testfwk.h>

/* PR tree-optimization/82388 */

#if 0 // TODO: Enable when SDCC can return struct!
struct A { int b; int c; int d; } e;

struct A
foo (void)
{
  struct A h[30] = {{0,0,0}};
  return h[29]; 
}
#endif
void
testTortureExecute (void)
{
#if 0
  e = foo ();
  return e.b; 
#endif
}