From cc0f8e94fed7fa2542d746361acdbfe76401a93e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 7 Feb 2017 11:26:12 +0100 Subject: test: add a few new tests related to text objects --- vis/text-objects/functions.in | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 vis/text-objects/functions.in (limited to 'vis/text-objects/functions.in') diff --git a/vis/text-objects/functions.in b/vis/text-objects/functions.in new file mode 100644 index 0000000..5179cb2 --- /dev/null +++ b/vis/text-objects/functions.in @@ -0,0 +1,26 @@ +static double pi = 3.14; + +/* addition */ +int add(int a, int b) { + return a+b; +} + +static double e = 2.71; + +/* multiplication of + * + * a*b + */ +int mul(int a, int b) +{ + return a*b; +} + +static double sqrt2 = 1.41; + +int +div(int a, int b) +{ + return a/b; +} + -- cgit v1.2.3