blob: 8025bae8f6f34b7cacbcd184b582aed737f0b621 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target alloca } */
extern void bar (int *);
static inline __attribute__((always_inline))
int
foo (int i)
{
struct S {
int ar[1][i];
} s;
s.ar[0][0] = 0;
bar (&s.ar[0][0]);
}
void
baz (int i)
{
foo (i + 2);
}
|