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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [c99-restrict-2.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* Test for restrict: in C99 only.  Test handling of arrays of restricted
/* Test for restrict: in C99 only.  Test handling of arrays of restricted
   pointers.  */
   pointers.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
 
 
typedef int *ipa[2];
typedef int *ipa[2];
 
 
int *restrict x[2];
int *restrict x[2];
restrict ipa y;
restrict ipa y;
 
 
void f(int *restrict a[2], restrict ipa b, int *restrict c[restrict]);
void f(int *restrict a[2], restrict ipa b, int *restrict c[restrict]);
 
 

powered by: WebSVN 2.1.0

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