diff options
author | Nathan Sidwell <nathan@acm.org> | 1999-09-03 08:59:06 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 1999-09-03 08:59:06 +0000 |
commit | 8c5f3e15b070348e7e4ae9151a79419472a19bf4 (patch) | |
tree | d4e3b8388016043e0d01f6e8f194f02a5c6b7d1d /gcc | |
parent | 43d5109b4433f624af37d97376d2e729f37e9c3a (diff) | |
download | gcc-8c5f3e15b070348e7e4ae9151a79419472a19bf4.zip gcc-8c5f3e15b070348e7e4ae9151a79419472a19bf4.tar.gz gcc-8c5f3e15b070348e7e4ae9151a79419472a19bf4.tar.bz2 |
* g++.old-deja/g++.other/deref1.C: New test.
From-SVN: r29080
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/deref1.C | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2bf872d..ef6ee55 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Fri Sep 03 09:31:10 BST 1999 Nathan Sidwell <nathan@acm.org> + + * g++.old-deja/g++.other/deref1.C: New test. + Thu Sep 02 09:27:34 BST 1999 Nathan Sidwell <nathan@acm.org> * g++.old-deja/g++.other/ambig2.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.other/deref1.C b/gcc/testsuite/g++.old-deja/g++.other/deref1.C new file mode 100644 index 0000000..706cd92 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/deref1.C @@ -0,0 +1,13 @@ +// 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 +} |