From d5f4df09ff4a84dda5b03525285f03be7723376b Mon Sep 17 00:00:00 2001 From: grischka Date: Tue, 5 Feb 2013 14:27:38 +0100 Subject: 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) --- tests/tcctest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/tcctest.c') 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) { -- cgit v1.3.1