From ca4609132e538f8132fc9bccc11b5cfffb8e0507 Mon Sep 17 00:00:00 2001 From: Nora Sandler Date: Fri, 24 May 2024 17:09:14 +0000 Subject: [PATCH] test case for too few arguments; fixes #29 --- tests/chapter_9/invalid_types/too_few_args.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/chapter_9/invalid_types/too_few_args.c diff --git a/tests/chapter_9/invalid_types/too_few_args.c b/tests/chapter_9/invalid_types/too_few_args.c new file mode 100644 index 00000000..6839ebbd --- /dev/null +++ b/tests/chapter_9/invalid_types/too_few_args.c @@ -0,0 +1,8 @@ +int foo(int a, int b) { + return a + 1; +} + +int main(void) { + /* foo is called with too many arguments */ + return foo(1); +} \ No newline at end of file