OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [c99-restrict-4.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.