aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-26 16:08:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:48 -0700
commit6661d85c0c2b0a8252a9d7b00f5d198b2e50b08e (patch)
tree82b02813391677999d9e931dcd2eb94945a2e427 /validation
parent64ff4ad1b6fdb2cc024a97907c536f240f91f26c (diff)
downloadsparse-dev-6661d85c0c2b0a8252a9d7b00f5d198b2e50b08e.tar.gz
More nasty tests from Al.
Diffstat (limited to 'validation')
-rw-r--r--validation/noderef.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/validation/noderef.c b/validation/noderef.c
index be7ba368..d9a48225 100644
--- a/validation/noderef.c
+++ b/validation/noderef.c
@@ -5,6 +5,10 @@ struct x {
int b;
};
+struct y {
+ int a[2];
+};
+
void h(void)
{
char __A *p;
@@ -14,6 +18,7 @@ void h(void)
struct x __A x;
int __A *q;
int __A *r;
+ struct y __A *py;
q1 = &p;
q2 = &p; /* This should complain */
@@ -30,4 +35,8 @@ void h(void)
r = &x.a;
r = &x.b;
+
+ r = py->a;
+ r = py->a+1;
+ r = &py->a[0];
}