]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/deref1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / deref1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/deref1.C b/gcc/testsuite/g++.old-deja/g++.other/deref1.C
deleted file mode 100644 (file)
index 706cd92..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// 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;      // ERROR - not a pointer to object
-  *vvp;     // ERROR - not a pointer to object
-  &*vp;     // ERROR - not a pointer to object
-  &*vvp;    // ERROR - not a pointer to object
-}