diff options
Diffstat (limited to 'test/reloc.c')
| -rw-r--r-- | test/reloc.c | 7 |
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; +} |