Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr70859-2.c
blob4817852a955f589697ed16d385a22bcadc8c1b92
1 /* PR c/70859 */
2 /* { dg-do compile } */
4 #include <stdint.h>
5 #define MAX __SIZE_MAX__
6 #define MAX2 SIZE_MAX
7 #define FIVE 5
9 static void *p;
11 void
12 fn0 (int n)
14 p = __builtin_alloca_with_align (n, SIZE_MAX); /* { dg-error "39:must be a constant integer" } */
15 p = __builtin_alloca_with_align (n, MAX); /* { dg-error "39:must be a constant integer" } */
16 p = __builtin_alloca_with_align (n, MAX2); /* { dg-error "39:must be a constant integer" } */
17 p = __builtin_alloca_with_align (n, FIVE); /* { dg-error "39:must be a constant integer" } */