Debian Codegraph @

gcc/testsuite/gcc.dg/Walloca-13.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Walloca-larger-than=100 -O2" } */
3
4 void f (void*);
5
6 void g (int *p, int *q)
7 {
8 __SIZE_TYPE__ n = (__SIZE_TYPE__)(p - q);
9 if (n < 100)
10 f (__builtin_alloca (n));
11 }