diff options
Diffstat (limited to 'tests/tcctest.c')
| -rw-r--r-- | tests/tcctest.c | 5 |
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) { |
