summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/libraries/shared/links/shared-libs-dev-symlink/build-spec/orig/code.c
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/libraries/shared/links/shared-libs-dev-symlink/build-spec/orig/code.c')
-rw-r--r--t/recipes/checks/libraries/shared/links/shared-libs-dev-symlink/build-spec/orig/code.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/recipes/checks/libraries/shared/links/shared-libs-dev-symlink/build-spec/orig/code.c b/t/recipes/checks/libraries/shared/links/shared-libs-dev-symlink/build-spec/orig/code.c
new file mode 100644
index 0000000..9a88735
--- /dev/null
+++ b/t/recipes/checks/libraries/shared/links/shared-libs-dev-symlink/build-spec/orig/code.c
@@ -0,0 +1,16 @@
+#include <stdlib.h>
+#include <math.h>
+#include "code.h"
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+