1 /* Qualifiers lost when taking the address of a const restrict object. 2 PR 44322. */ 3 /* { dg-do compile } */ 4 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ 5 void * restrict const a[2]; 6 void * restrict const (*p2)[2]; 7 foo(void)8void foo(void) { 9 p2 = &a; 10 } 11 12 void * restrict volatile b[2]; 13 void * restrict volatile (*q2)[2]; 14 bar(void)15void bar(void) { 16 q2 = &b; 17 } 18