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)
This commit is contained in:
@ -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(1 + 2));
|
||||
printf("res = %d\n", __builtin_constant_p(&constant_p_var));
|
||||
printf("res = %d\n", __builtin_constant_p(constant_p_var));
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
extern int __attribute__((weak)) weak_f1(void);
|
||||
@ -2520,6 +2522,7 @@ int __attribute__((weak)) weak_f2() { return 222; }
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user