2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-arraydecl-3.c
blob2ab927d6ab245488a1b654726f49ee17c3291ea3
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" } */
7 void
8 f0 (int a[restrict])
10 int **b = &a; /* { dg-error "discards qualifiers" } */
11 int *restrict *c = &a;
14 void
15 f1 (a)
16 int a[restrict];
18 int **b = &a; /* { dg-error "discards qualifiers" } */
19 int *restrict *c = &a;