aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_ptrtoint.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_ptrtoint.in
parent94e1d887ffebcbf640fbca19c76331f6dffbff23 (diff)
Fix the indentation of core test input files with clang-format.
Diffstat (limited to 'tests/core/test_ptrtoint.in')
-rw-r--r--tests/core/test_ptrtoint.in28
1 files changed, 13 insertions, 15 deletions
diff --git a/tests/core/test_ptrtoint.in b/tests/core/test_ptrtoint.in
index be7214e8..88e91262 100644
--- a/tests/core/test_ptrtoint.in
+++ b/tests/core/test_ptrtoint.in
@@ -1,16 +1,14 @@
+#include <stdio.h>
- #include <stdio.h>
-
- int main( int argc, const char *argv[] ) {
- char *a = new char[10];
- char *a0 = a+0;
- char *a5 = a+5;
- int *b = new int[10];
- int *b0 = b+0;
- int *b5 = b+5;
- int c = (int)b5-(int)b0; // Emscripten should warn!
- int d = (int)b5-(int)b0; // Emscripten should warn!
- printf("*%d*\n", (int)a5-(int)a0);
- return 0;
- }
- \ No newline at end of file
+int main(int argc, const char *argv[]) {
+ char *a = new char[10];
+ char *a0 = a + 0;
+ char *a5 = a + 5;
+ int *b = new int[10];
+ int *b0 = b + 0;
+ int *b5 = b + 5;
+ int c = (int)b5 - (int)b0; // Emscripten should warn!
+ int d = (int)b5 - (int)b0; // Emscripten should warn!
+ printf("*%d*\n", (int)a5 - (int)a0);
+ return 0;
+}