diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2021-03-15 21:40:40 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2021-08-29 07:53:18 +0100 |
commit | dc033e0149fd7790b89f816041e87a6ddc22e21c (patch) | |
tree | 4af7d547e848ae96e0c7849a80306b8b09b5e4cd /gcc/testsuite/gcc.dg | |
parent | fc3e9f58ec18154027aadc6aa055490acb8c2920 (diff) | |
download | gcc-dc033e0149fd7790b89f816041e87a6ddc22e21c.zip gcc-dc033e0149fd7790b89f816041e87a6ddc22e21c.tar.gz gcc-dc033e0149fd7790b89f816041e87a6ddc22e21c.tar.bz2 |
testsuite, Darwin : Skip a test requiring strndup in libc.
Before Darwin11 there is no strndup in libc. This test fails with
warning output because of that - so skip it on these versions (since
they are not able to use strndup anyway).
gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/strndup-1.c: Skip for Darwin versions
without strndup support in libc.
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/analyzer/strndup-1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c index 23d9b60..5822353 100644 --- a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c +++ b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* } } */ #include <string.h> #include <stdlib.h> |