From 9f5836a6927c18a18b5bfbdfd95eb2a5f4b834b2 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Sun, 8 Dec 2019 10:51:58 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/cpp0x/gen-attrs-36.C | 8 ++++---- gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C | 2 +- gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2d14412..c1b9542 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 3f0ef14..c340bf9 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 59626b2..d84afc9 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 9c834a4..d33a535 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" } -- 2.7.4