summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr77767.c
blob: 41cdebc09882d2ed8bc8f335afdfe4c2e50250b5 (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
27
28
29
30
/*
   pr77767.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* PR c/77767 */

#if 0 // Enable when SDCC allows non-constant expression in array parms
void
foo (int a, int b[a++], int c, int d[c++])
{
  if (a != 2 || c != 2)
    ASSERT (0);
}
#endif

void
testTortureExecute (void)
{
#if 0
  int e[10];
  foo (1, e, 1, e);
  return;
#endif
}