diff options
Diffstat (limited to 'validation/logical.c')
-rw-r--r-- | validation/logical.c | 17 |
1 files changed, 17 insertions, 0 deletions
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 + */ + |