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/] [noncompile/] [voidparam-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test for bad uses of 'void' in parameter lists.  */
2
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3
 
4
typedef const void cv;
5
typedef volatile void vv;
6
 
7
void foo0 (const void); /* { dg-error "parameter" "const void decl" } */
8
void foo0a (cv); /* { dg-error "parameter" "const void decl" } */
9
void foo1 (volatile void); /* { dg-error "parameter" "volatile void decl" } */
10
void foo1a (vv); /* { dg-error "parameter" "volatile void decl" } */
11
void foo2 (register void); /* { dg-error "parameter" "register void decl" } */
12
 
13
void bar0 (const void) { } /* { dg-error "parameter" "const void defn" } */
14
void bar0a (cv) { } /* { dg-error "parameter" "const void defn" } */
15
void bar1 (volatile void) { } /* { dg-error "parameter" "volatile void defn" } */
16
void bar1a (vv) { } /* { dg-error "parameter" "volatile void defn" } */
17
void bar2 (register void) { } /* { dg-error "parameter" "register void defn" } */

powered by: WebSVN 2.1.0

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