From: Jerome Lambourg Date: Fri, 1 Jan 2021 04:55:00 +0000 (-0300) Subject: skip testsuite/g++.dg/other/anon5.C on vxworks_kernel targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af655dee7958c1cbcc087ca18902ed2cd570cda8;p=gcc.git skip testsuite/g++.dg/other/anon5.C on vxworks_kernel targets The vxworks kernel-mode linking is partial linking, so it cannot detect missing symbols. for gcc/testsuite/ChangeLog * g++.dg/other/anon5.C: Skip on vxworks kernel. --- diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C index dadd92ef9e4..09853d4c651 100644 --- a/gcc/testsuite/g++.dg/other/anon5.C +++ b/gcc/testsuite/g++.dg/other/anon5.C @@ -1,6 +1,9 @@ // PR c++/34094 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } } // { dg-require-effective-target nonpic } +// Skip on vxworks kernel: The link being partial, the linker doesn't see +// the undefined reference +// { dg-skip-if "partial link" { vxworks_kernel } } // { dg-options "-gdwarf-2" } // Ignore additional message on powerpc-ibm-aix // { dg-prune-output "obtain more information" } */