URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
12 |
jlechner |
/* 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" } */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.