Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.other/deref1.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { 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 "3:.void\\*. is not a pointer-to-object type" } not a pointer to object *vvp; // { dg-error "3:.volatile void\\*. is not a pointer-to-object type" } not a pointer to object &*vp; // { dg-error "4:.void\\*. is not a pointer-to-object type" } not a pointer to object &*vvp; // { dg-error "4:.volatile void\\*. is not a pointer-to-object type" } not a pointer to object }