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-1.c] - Blame information for rev 455

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test for restrict: in C99 only.  */
2
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3
/* { dg-do compile } */
4
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
5
 
6
char *restrict foo;
7
 
8
/* The following are constraint violations and should be rejected.  */
9
 
10
int restrict bar; /* { dg-bogus "warning" "warning in place of error" } */
11
/* { dg-error "restrict" "restrict constraint violation" { target *-*-* } 10 } */
12
 
13
typedef void (*fp) (void);
14
 
15
fp restrict baz; /* { dg-bogus "warning" "warning in place of error" } */
16
/* { dg-error "restrict" "restrict constraint violation" { target *-*-* } 15 } */
17
 
18
void quux (int restrict a[3]); /* { dg-bogus "warning" "warning in place of error" } */
19
/* { dg-error "restrict" "restrict constraint violation" { target *-*-* } 18 } */

powered by: WebSVN 2.1.0

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