aboutsummaryrefslogtreecommitdiffstats
path: root/test_f.c
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-09-25 14:44:31 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-09-25 14:44:31 +0300
commitc6ad098a80adc3250d3f08d0c2b884135d98b0a7 (patch)
tree895f3af92322973703b43cbb236c5a10eb48e827 /test_f.c
parent49b2b840c668c64089936e681192c75a8de2c81c (diff)
initial commit
Diffstat (limited to 'test_f.c')
-rw-r--r--test_f.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test_f.c b/test_f.c
new file mode 100644
index 0000000..8811f1e
--- /dev/null
+++ b/test_f.c
@@ -0,0 +1,5 @@
+double f(double x) {
+ static int counter = 0;
+ ++counter;
+ return counter * x;
+}