From 7e3c58bfc1d957e48faf0752758da0fed811ed58 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 6 Nov 2023 18:38:04 +0100 Subject: [PATCH] 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. --- gcc/testsuite/gcc.dg/cpp/wchar-1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2