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/] [lvalue-7.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 298 jeremybenn
/* Test constraints on unary '&': PR 22367.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
5
 
6
extern void v;
7
void f1 (void) { &v; } /* { dg-error "taking address of expression of type 'void'" } */
8
 
9
extern void *pv;
10
void f2 (void) { &*pv; } /* { dg-warning "dereferencing" } */
11
 
12
extern const void cv;
13
void f3 (void) { &cv; }
14
 
15
extern const void *pcv;
16
void f4 (void) { &*pcv; } /* { dg-warning "dereferencing" } */

powered by: WebSVN 2.1.0

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