aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_mathfuncptr.in
diff options
context:
space:
mode:
authorVasilis Kalintiris <ehostunreach@gmail.com>2013-12-14 16:04:52 +0200
committerVasilis Kalintiris <ehostunreach@gmail.com>2013-12-15 20:51:29 +0200
commitc05cdf26c872f76dad82194305c28a53e9123677 (patch)
treeb9c48a759b8b2e58c4714e11aa8cd992de8bd0a4 /tests/core/test_mathfuncptr.in
parent94e1d887ffebcbf640fbca19c76331f6dffbff23 (diff)
Fix the indentation of core test input files with clang-format.
Diffstat (limited to 'tests/core/test_mathfuncptr.in')
-rw-r--r--tests/core/test_mathfuncptr.in22
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/core/test_mathfuncptr.in b/tests/core/test_mathfuncptr.in
index 96e78401..87feaade 100644
--- a/tests/core/test_mathfuncptr.in
+++ b/tests/core/test_mathfuncptr.in
@@ -1,13 +1,11 @@
+#include <math.h>
+#include <stdio.h>
- #include <math.h>
- #include <stdio.h>
-
- int
- main(int argc, char **argv) {
- float (*fn)(float) = argc != 12 ? &sqrtf : &fabsf;
- float (*fn2)(float) = argc != 13 ? &fabsf : &sqrtf;
- float (*fn3)(float) = argc != 14 ? &erff : &fabsf;
- printf("fn2(-5) = %d, fn(10) = %.2f, erf(10) = %.2f\n", (int)fn2(-5), fn(10), fn3(10));
- return 0;
- }
- \ No newline at end of file
+int main(int argc, char **argv) {
+ float (*fn)(float) = argc != 12 ? &sqrtf : &fabsf;
+ float (*fn2)(float) = argc != 13 ? &fabsf : &sqrtf;
+ float (*fn3)(float) = argc != 14 ? &erff : &fabsf;
+ printf("fn2(-5) = %d, fn(10) = %.2f, erf(10) = %.2f\n", (int)fn2(-5), fn(10),
+ fn3(10));
+ return 0;
+}