PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-restrict-4.c
blob5852d0a112772c5b6e57efc0e74b4b159d7ac653
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];
8 void foo(void) {
9 p2 = &a;
12 void * restrict volatile b[2];
13 void * restrict volatile (*q2)[2];
15 void bar(void) {
16 q2 = &b;