From: Rainer Orth Date: Sun, 8 Dec 2019 10:51:58 +0000 (+0000) Subject: Fix ia32 testsuite failures from C2x attributes on types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f5836a6927c18a18b5bfbdfd95eb2a5f4b834b2;p=gcc.git Fix ia32 testsuite failures from C2x attributes on types * g++.dg/cpp0x/gen-attrs-36.C: Update expected diagnostics. * g++.dg/cpp0x/gen-attrs-37.C: Likewise. * g++.dg/cpp0x/gen-attrs-8.C: Likewise. From-SVN: r279085 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2d14412c7a7..c1b954271be 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-12-08 Rainer Orth + + * g++.dg/cpp0x/gen-attrs-36.C: Update expected diagnostics. + * g++.dg/cpp0x/gen-attrs-37.C: Likewise. + * g++.dg/cpp0x/gen-attrs-8.C: Likewise. + 2019-12-07 Marek Polacek PR c++/91678 - wrong error with decltype and location wrapper. diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-36.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-36.C index 3f0ef1461b2..c340bf96aa0 100644 --- a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-36.C +++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-36.C @@ -9,16 +9,16 @@ class T; class L { }; class P : public L { - typedef void (T::* [[gnu::__stdcall__]] F2) (L*); // { dg-warning "ignored" } - typedef void (T::*F) (L*) [[gnu::__stdcall__]]; // { dg-warning "ignored" } + typedef void (T::* [[gnu::__stdcall__]] F2) (L*); // { dg-warning "only applies to function types" } + typedef void (T::*F) (L*) [[gnu::__stdcall__]]; void f(bool aAdd); }; class T { public: - virtual void A(L *listener) [[gnu::__stdcall__]] = 0; // { dg-warning "ignored" } - virtual void R(L *listener) [[gnu::__stdcall__]] = 0; // { dg-warning "ignored" } + virtual void A(L *listener) [[gnu::__stdcall__]] = 0; + virtual void R(L *listener) [[gnu::__stdcall__]] = 0; }; void P::f(bool aAdd) { diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C index 59626b254eb..d84afc9c613 100644 --- a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C +++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C @@ -10,7 +10,7 @@ struct S { S(const S &s) {} }; -S getS() [[gnu::__stdcall__]]; // { dg-warning "ignored" } +S getS() [[gnu::__stdcall__]]; void test() { diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C index 9c834a4a43c..d33a53530bf 100644 --- a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C +++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C @@ -3,5 +3,5 @@ // { dg-require-effective-target c++11 } extern int * ([[gnu::stdcall]] *fooPtr)( void); // { dg-error "expected" } -int * [[gnu::stdcall]] myFn01( void) { return 0; }// { dg-warning "ignored" } +int * [[gnu::stdcall]] myFn01( void) { return 0; }// { dg-warning "only applies to function types" }