attr-copy-6.c fails on Darwin which doesn’t have alias support.
Fixed by adding the dg-requires line.
tested on x86_64-darwin16, x86_64-linux-gnu
applied as obvious to mainline.
thanks
Iain


2019-06-10  Iain Sandoe  <i...@sandoe.co.uk>

        * gcc.dg/attr-copy-6.c: Require alias support.

diff --git a/gcc/testsuite/gcc.dg/attr-copy-6.c 
b/gcc/testsuite/gcc.dg/attr-copy-6.c
index 010db0d..d1a2865 100644
--- a/gcc/testsuite/gcc.dg/attr-copy-6.c
+++ b/gcc/testsuite/gcc.dg/attr-copy-6.c
@@ -2,6 +2,7 @@
    { dg-do compile }
    { dg-skip-if "Attributes not supported" { { hppa*-*-hpux* } && { ! lp64 } } 
}
    { dg-options "-O2 -Wall" }
+   { dg-require-alias "" }
    { dg-require-weak "" } */
 
 #define ATTR(...)   __attribute__ ((__VA_ARGS__))

Reply via email to