1 /* Test for C99 forms of array declarator.  Test restrict qualifiers
2    properly applied to type of parameter.  */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6 
7 void
f0(int a[restrict])8 f0 (int a[restrict])
9 {
10   int **b = &a; /* { dg-error "discards 'restrict' qualifier" } */
11   int *restrict *c = &a;
12 }
13 
14 void
f1(a)15 f1 (a)
16      int a[restrict];
17 {
18   int **b = &a; /* { dg-error "discards 'restrict' qualifier" } */
19   int *restrict *c = &a;
20 }
21