Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vla-22.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { 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); }