aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-11-06 18:38:04 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-11-06 19:52:18 +0100
commit7e3c58bfc1d957e48faf0752758da0fed811ed58 (patch)
tree9740613f5984f4deea07a5e0111256d4d610acf0 /gcc
parent0794263c957ef1f66a5a985ffb8d21031f73be47 (diff)
downloadgcc-7e3c58bfc1d957e48faf0752758da0fed811ed58.zip
gcc-7e3c58bfc1d957e48faf0752758da0fed811ed58.tar.gz
gcc-7e3c58bfc1d957e48faf0752758da0fed811ed58.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/wchar-1.c4
1 files 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 ac9b38b..51ef2fb 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;