aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/reloc.c')
-rw-r--r--test/reloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/reloc.c b/test/reloc.c
new file mode 100644
index 0000000..70cba28
--- /dev/null
+++ b/test/reloc.c
@@ -0,0 +1,7 @@
+
+
+float get_value(unsigned x)
+{
+ static const float values [] = {1.1f, 1.2f, 1.3f, 1.4f};
+ return x < 4 ? values[x] : 0.0f;
+}