annotate gcc/testsuite/gcc.dg/pr70859-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR c/70859 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #ifdef _AIX
kono
parents:
diff changeset
5 #define _ISOC99_SOURCE
kono
parents:
diff changeset
6 #endif
kono
parents:
diff changeset
7 #include <stdint.h>
kono
parents:
diff changeset
8 #define MAX __SIZE_MAX__
kono
parents:
diff changeset
9 #define MAX2 SIZE_MAX
kono
parents:
diff changeset
10 #define FIVE 5
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 static void *p;
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 void
kono
parents:
diff changeset
15 fn0 (int n)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 p = __builtin_alloca_with_align (n, SIZE_MAX); /* { dg-error "39:must be a constant integer" } */
kono
parents:
diff changeset
18 p = __builtin_alloca_with_align (n, MAX); /* { dg-error "39:must be a constant integer" } */
kono
parents:
diff changeset
19 p = __builtin_alloca_with_align (n, MAX2); /* { dg-error "39:must be a constant integer" } */
kono
parents:
diff changeset
20 p = __builtin_alloca_with_align (n, FIVE); /* { dg-error "39:must be a constant integer" } */
kono
parents:
diff changeset
21 }