From 141793d5e91cac12a59ed3a4a8d432824ea753ee Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Thu, 21 Nov 2019 10:41:41 +0000 Subject: [PATCH] [Darwin, testsuite] Fix fail of gnu2x-attrs-1.c. This test fails on targets without symbol alias support, but we don't want to skip it entirely with the usual dg-requires, thus expect the error on the alias line. gcc/testsuite/ChangeLog: 2019-11-21 Iain Sandoe * gcc.dg/gnu2x-attrs-1.c: Expect an error for the alias case on Darwin. From-SVN: r278547 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/gnu2x-attrs-1.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d9499e58948..5b0217c7118 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-11-21 Iain Sandoe + + * gcc.dg/gnu2x-attrs-1.c: Expect an error for the alias case + on Darwin. + 2019-11-21 Jakub Jelinek PR c++/90842 diff --git a/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c b/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c index df22fb3d1b7..fe7e95b4904 100644 --- a/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c +++ b/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c @@ -5,7 +5,7 @@ void f (void) {}; -[[gnu::alias("f")]] void g (void); +[[gnu::alias("f")]] void g (void); /* { dg-error "only weak" *-*-darwin* } */ void [[gnu::alias("f")]] h (void); /* { dg-warning "ignored" } */ /* { dg-message "that appertains to a type-specifier" "appertains" { target *-*-* } .-1 } */ -- 2.30.2