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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [qual-return-2.c] - Blame information for rev 701

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

Line No. Rev Author Line
1 689 jeremybenn
/* Test for warnings for qualified function return types.  -pedantic test.  */
2
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3
/* { dg-do compile } */
4
/* { dg-options "-pedantic" } */
5
 
6
/* Qualifying a function return type makes no sense.  */
7
 
8
/* The first two of these shouldn't warn (with just -pedantic) as long
9
   as the function is not defined.  */
10
 
11
volatile void vvoid_fn (void);
12
volatile void (*vvoid_ptr) (void);
13
volatile void vvoid_fn2 (void) { } /* { dg-warning "qualified" "volatile defn" } */

powered by: WebSVN 2.1.0

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