2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / deref1.C
blob1b32c8c56953675cb5db9f7756d11b6a5388a7bb
1 // { dg-do assemble  }
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
6 // to cv void.
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