From db9ce95814d556141df003f2a5c0fa77bb78ede4 Mon Sep 17 00:00:00 2001 From: Christopher Li Date: Wed, 28 Oct 2009 22:41:26 +0000 Subject: Adding test case for "x && y && z" . Signed-off-by: Christopher Li --- validation/logical.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 validation/logical.c diff --git a/validation/logical.c b/validation/logical.c new file mode 100644 index 0000000..3f97522 --- /dev/null +++ b/validation/logical.c @@ -0,0 +1,17 @@ +extern int a(void); +extern int b(void); +extern int c(void); + +static int or(void) +{ + return a() || b() || c(); +} + +static int and(void) +{ + return a() && b() && c(); +} +/* + * check-name: Logical and/or + */ + -- cgit v1.2.3-65-gdbad