summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr90898.c
blob: e992ea34cd9d60ee1a6c89cd5edb0d515067d0a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/90898 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

void *p;
int bar (void);
void baz (int *);

void
foo (void)
{
  p = __builtin_stack_save ();
  int a[(bar (), 2)];
  baz (a);
  __builtin_stack_restore (p);
}