aboutsummaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-05 14:27:38 +0100
committergrischka <grischka>2013-02-05 14:27:38 +0100
commitd5f4df09ff4a84dda5b03525285f03be7723376b (patch)
tree3bccfe280ffb9c7f254f98188275d8164c4fe8a6 /tests/tcctest.c
parent60cf64612c1d0a94c15eed3243ef869356e81d79 (diff)
downloadtinycc-d5f4df09ff4a84dda5b03525285f03be7723376b.tar.gz
tinycc-d5f4df09ff4a84dda5b03525285f03be7723376b.tar.bz2
tests: cleanup
tests: - add "hello" to test first basic compilation to file/memory - add "more" test (tests2 suite) - remove some tests tests2: - move into tests dir - Convert some files from DOS to unix LF - remove 2>&1 redirection win32: - tccrun.c: modify exception filter to exit correctly (needed for btest) - tcctest.c: exclude weak_test() (feature does not exist on win32)
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index 925418a..8e295fd 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -594,7 +594,9 @@ int main(int argc, char **argv)
local_label_test();
asm_test();
builtin_test();
+#ifndef _WIN32
weak_test();
+#endif
global_data_test();
cmp_comparison_test();
math_cmp_test();
@@ -2464,7 +2466,7 @@ void builtin_test(void)
printf("res = %d\n", __builtin_constant_p(constant_p_var));
}
-
+#ifndef _WIN32
extern int __attribute__((weak)) weak_f1(void);
extern int __attribute__((weak)) weak_f2(void);
extern int weak_f3(void);
@@ -2520,6 +2522,7 @@ int __attribute__((weak)) weak_f2() { return 222; }
int __attribute__((weak)) weak_f3() { return 333; }
int __attribute__((weak)) weak_v2 = 222;
int __attribute__((weak)) weak_v3 = 333;
+#endif
void const_func(const int a)
{