[testsuite,obvious] Require alias support in a test using it.

Message ID 3D33C692-AF39-4DA1-80A2-6AAB1CA4F8F4@sandoe.co.uk
State New
Headers show
Series
  • [testsuite,obvious] Require alias support in a test using it.
Related show

Commit Message

Iain Sandoe June 10, 2019, 7:12 a.m.
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  <iain@sandoe.co.uk>

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

Patch

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__))