]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: testsuite: Add csignal missing test for SIG_IGN
authorXavier Bonaventura <xavibonaventura@gmail.com>
Wed, 5 Nov 2025 11:28:59 +0000 (12:28 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 13 Nov 2025 14:29:08 +0000 (14:29 +0000)
SIG_IGN also needs to be defined according to the C++ standard.
This was missing in the test.

* testsuite/18_support/headers/csignal/macros.cc: Check for
SIG_IGN.

Signed-off-by: Xavier Bonaventura <xavibonaventura@gmail.com>
libstdc++-v3/testsuite/18_support/headers/csignal/macros.cc

index 6d6c8217b36105e52e5c1e018bd294649cca2732..1076cbca24d5a31333483d8584cdd563ad63bb69 100644 (file)
@@ -37,6 +37,10 @@ namespace gnu
     #error "SIG_DFL_must_be_a_macro"
 #endif
 
+#ifndef SIG_IGN
+    #error "SIG_IGN_must_be_a_macro"
+#endif
+
 #ifndef SIGFPE
     #error "SIGFPE_must_be_a_macro"
 #endif