]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [vxworks] netinet includes atomic, reqs c++11
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:19:57 +0000 (06:19 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:19:57 +0000 (06:19 -0300)
On vxworks, the included netinet/in.h header indirectly includes
<atomic>, that fails on C++ <11.  Skip the test.

for  gcc/testsuite/ChangeLog

* c-c++-common/analyzer/fd-glibc-byte-stream-socket.c: Skip on
vxworks with C++ < 11.

gcc/testsuite/c-c++-common/analyzer/fd-glibc-byte-stream-socket.c

index fd57d3b0894a023ba93194c1c6e5d1e6e30778d4..2a44e452127c8b268d4d6f5cb9867ee15214e23e 100644 (file)
@@ -5,6 +5,8 @@
 /* { dg-additional-options "-fno-exceptions" } */
 
 /* { dg-skip-if "" { hppa*-*-hpux* powerpc*-*-aix* } } */
+/* On vxworks, netinet/in.h indirectly includes atomic, that requires C++11.  */
+/* { dg-skip-if "" { *-*-vxworks* && { c++ && { ! c++11 } } } } */
 
 #include <stdio.h>
 #include <string.h>