diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-11-21 10:41:41 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-11-21 10:41:41 +0000 |
commit | 141793d5e91cac12a59ed3a4a8d432824ea753ee (patch) | |
tree | 9bbc43515d78585abad5f4d06c6ac81b3205d700 /gcc | |
parent | e4112065b05e7667ad69e35125c755a7ef4060dc (diff) | |
download | gcc-141793d5e91cac12a59ed3a4a8d432824ea753ee.zip gcc-141793d5e91cac12a59ed3a4a8d432824ea753ee.tar.gz gcc-141793d5e91cac12a59ed3a4a8d432824ea753ee.tar.bz2 |
[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 <iain@sandoe.co.uk>
* gcc.dg/gnu2x-attrs-1.c: Expect an error for the alias case
on Darwin.
From-SVN: r278547
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/gnu2x-attrs-1.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d9499e5..5b0217c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-11-21 Iain Sandoe <iain@sandoe.co.uk> + + * gcc.dg/gnu2x-attrs-1.c: Expect an error for the alias case + on Darwin. + 2019-11-21 Jakub Jelinek <jakub@redhat.com> PR c++/90842 diff --git a/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c b/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c index df22fb3..fe7e95b 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 } */ |