From 8209297f0cde69559f751eb3614584e69d834a2a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Jun 2015 16:51:12 +0300 Subject: Add test 6. --- test/test6.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/test6.c (limited to 'test/test6.c') diff --git a/test/test6.c b/test/test6.c new file mode 100644 index 0000000..d9203b2 --- /dev/null +++ b/test/test6.c @@ -0,0 +1,24 @@ +void func1(int *a); +void func2(int *a); +void func3(int *a); + +void func1(int *a) +{ + *a = 100; +} + +void func2(int *a) +{ + if (!a) + return; + else + *a = 200; +} + +void func3(int *aptr) +{ + if (!aptr) + return; + + *aptr = 300; +} -- cgit v1.2.3-60-g2f50