From: Florian Weimer Date: Mon, 6 Nov 2023 17:38:04 +0000 (+0100) Subject: Avoid undeclared use of abort in gcc.dg/cpp/wchar-1.c X-Git-Tag: basepoints/gcc-15~4974 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e3c58bfc1d957e48faf0752758da0fed811ed58;p=thirdparty%2Fgcc.git Avoid undeclared use of abort in gcc.dg/cpp/wchar-1.c This should be safe because this is a preprocessor test; it should not exercise implicit function declarations. * gcc.dg/cpp/wchar-1.c (main): Call __builtin_abort instead of abort. --- diff --git a/gcc/testsuite/gcc.dg/cpp/wchar-1.c b/gcc/testsuite/gcc.dg/cpp/wchar-1.c index ac9b38b80da7..51ef2fb0f1d7 100644 --- a/gcc/testsuite/gcc.dg/cpp/wchar-1.c +++ b/gcc/testsuite/gcc.dg/cpp/wchar-1.c @@ -14,10 +14,10 @@ int main () #if L'\x0' - 1 < 0 if (c > 0) - abort (); + __builtin_abort (); #else if (c < 0) - abort (); + __builtin_abort (); #endif return 0;