aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/noderef.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/validation/noderef.c b/validation/noderef.c
index 5af46fd4..9f4f196e 100644
--- a/validation/noderef.c
+++ b/validation/noderef.c
@@ -4,6 +4,14 @@ void h(void)
char __A *p;
char __A * * q1;
char * __A * q2;
+ int __A *q;
+ int __A *r;
+
q1 = &p;
- q2 = &p;
+ q2 = &p; /* This should complain */
+
+ r = &*q;
+ r = q;
+ r = &*(q+1); /* This should NOT complain */
+ r = q+1;
}