PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / Walloca-13.c
blobd3af0c503996ddbece25dbdc96e45aa586ee4b9a
1 /* { dg-do compile } */
2 /* { dg-require-effective-target alloca } */
3 /* { dg-options "-Walloca-larger-than=100 -O2" } */
5 void f (void*);
7 void g (int *p, int *q)
9 __SIZE_TYPE__ n = (__SIZE_TYPE__)(p - q);
10 if (n < 100)
11 f (__builtin_alloca (n));