Fix for the following test error on pru-unknown-elf:

  FAIL: gcc.dg/Wzero-as-null-pointer-constant-2.c (test for excess errors)
  Excess errors:
  .../gcc/gcc/testsuite/gcc.dg/Wzero-as-null-pointer-constant-2.c:9:19: sorry, 
unimplemented: '_BitInt(4)' is not supported on this target

Pushed to trunk as obvious.

gcc/testsuite/ChangeLog:

        * gcc.dg/Wzero-as-null-pointer-constant-2.c: Require effective
        target bitint.

Cc: Martin Uecker <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
---
 gcc/testsuite/gcc.dg/Wzero-as-null-pointer-constant-2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/Wzero-as-null-pointer-constant-2.c 
b/gcc/testsuite/gcc.dg/Wzero-as-null-pointer-constant-2.c
index 9b3e1c1a014..55355813893 100644
--- a/gcc/testsuite/gcc.dg/Wzero-as-null-pointer-constant-2.c
+++ b/gcc/testsuite/gcc.dg/Wzero-as-null-pointer-constant-2.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target bitint } } */
 /* { dg-options "-std=c23 -Wzero-as-null-pointer-constant" } */
 
 void foo(void*);
-- 
2.52.0

Reply via email to