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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [c99-arraydecl-3.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* Test for C99 forms of array declarator.  Test restrict qualifiers
2
   properly applied to type of parameter.  */
3
/* Origin: Joseph Myers <joseph@codesourcery.com> */
4
/* { dg-do compile } */
5
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6
 
7
void
8
f0 (int a[restrict])
9
{
10
  int **b = &a; /* { dg-error "discards qualifiers" } */
11
  int *restrict *c = &a;
12
}
13
 
14
void
15
f1 (a)
16
     int a[restrict];
17
{
18
  int **b = &a; /* { dg-error "discards qualifiers" } */
19
  int *restrict *c = &a;
20
}

powered by: WebSVN 2.1.0

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