1 /* { dg-do compile } */
2 /* { dg-options "" } */
4 /* Check compatibility of array declarations. */
6 /* Incomplete decl matches. */
10 /* Two integral expressions must be the same. Note that 0 is
11 a gcc extension, but it should work like any other constant. */
16 extern char arr3
[0]; /* { dg-error "previous declaration" } */
17 char arr3
[1]; /* { dg-error "conflicting types" } */
19 /* Variable size matches. */
20 void func(int n
, int m
)
22 /* The next two are from the example in c99 6.7.5.2/9. */
24 /* Invalid: not compatible because 4 != 6. */
27 p
= a
; /* { dg-error "incompatible" } */
30 /* Compatible, but defined behavior only if n == 6 and m == n+1. */
36 /* Compatible, but undefined behavior; (2, 2) is not a constant
37 expression, and thus A is a VLA. */
40 p
= a
; /* { dg-bogus "incompatible" "bad vla handling" } */