2 // Copyright (C) 1999 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 1 Sep 1999 <nathan@acm.org>
5 // [expr.unary.op]/1 says you can dereference all pointers except for pointers
8 void fn (void *vp, volatile void *vvp)
10 *vp; // { dg-error "" } not a pointer to object
11 *vvp; // { dg-error "" } not a pointer to object
12 &*vp; // { dg-error "" } not a pointer to object
13 &*vvp; // { dg-error "" } not a pointer to object