commit e1f34328f525289ed96ef82a644ce1abd6916c4e parent 4c6c01a90ba930f89907cc16efc1a3b2d2f2db6c Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Mon, 3 Oct 2016 16:16:48 +0200 [tests] Add new test about call functions Diffstat:
A | tests/0081-calls.c | | | 18 | ++++++++++++++++++ |
M | tests/scc-tests.lst | | | 1 | + |
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/tests/0081-calls.c b/tests/0081-calls.c @@ -0,0 +1,18 @@ + +int +f1(char *p) +{ + return *p+1; +} + +int +main() +{ + char s = 1; + int v[1000]; + int f1(char *); + + if (f1(&s) != 2) + return 1; + return 0; +} diff --git a/tests/scc-tests.lst b/tests/scc-tests.lst @@ -76,3 +76,4 @@ 0078-dirifexpr.c 0079-cond.c 0080-arrays.c +0081-calls.c