aboutsummaryrefslogtreecommitdiffstats
path: root/test_f.c
diff options
context:
space:
mode:
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;
+}