Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/c99-restrict-4.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 | |
8 void foo(void) { | |
9 p2 = &a; | |
10 } | |
11 | |
12 void * restrict volatile b[2]; | |
13 void * restrict volatile (*q2)[2]; | |
14 | |
15 void bar(void) { | |
16 q2 = &b; | |
17 } |