mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 18:59:45 +08:00
* g++.old-deja/g++.other/deref1.C: New test.
From-SVN: r29080
This commit is contained in:
parent
43d5109b44
commit
8c5f3e15b0
@ -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.
|
||||
|
13
gcc/testsuite/g++.old-deja/g++.other/deref1.C
Normal file
13
gcc/testsuite/g++.old-deja/g++.other/deref1.C
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user