URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [deref1.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 1 Sep 1999 <nathan@acm.org>
// [expr.unary.op]/1 says you can dereference all pointers except for pointers
// to cv void.
void fn (void *vp, volatile void *vvp)
{
*vp; // { dg-error "" } not a pointer to object
*vvp; // { dg-error "" } not a pointer to object
&*vp; // { dg-error "" } not a pointer to object
&*vvp; // { dg-error "" } not a pointer to object
}