diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-02-23 14:48:00 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-02-23 14:48:00 -0800 |
commit | 59389469e3a8563de51bd64a92d52e29526ede4b (patch) | |
tree | ef28105fe2c1aa64e5341cab0bba591e63f89252 /tests/hello_function.cpp | |
parent | 8a40a7eaa326858f37711df67aa5c07a86ee859f (diff) |
hello_function.cpp example
Diffstat (limited to 'tests/hello_function.cpp')
-rw-r--r-- | tests/hello_function.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hello_function.cpp b/tests/hello_function.cpp new file mode 100644 index 00000000..6037109e --- /dev/null +++ b/tests/hello_function.cpp @@ -0,0 +1,11 @@ + +#include <math.h> + +extern "C" { + +int int_sqrt(int x) { + return sqrt(x); +} + +} + |