Commit 9f5836a6 by Rainer Orth Committed by Rainer Orth

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
parent 241224b6
2019-12-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* 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 <polacek@redhat.com> 2019-12-07 Marek Polacek <polacek@redhat.com>
PR c++/91678 - wrong error with decltype and location wrapper. PR c++/91678 - wrong error with decltype and location wrapper.
......
...@@ -9,16 +9,16 @@ class T; ...@@ -9,16 +9,16 @@ class T;
class L { }; class L { };
class P : public L class P : public L
{ {
typedef void (T::* [[gnu::__stdcall__]] F2) (L*); // { dg-warning "ignored" } typedef void (T::* [[gnu::__stdcall__]] F2) (L*); // { dg-warning "only applies to function types" }
typedef void (T::*F) (L*) [[gnu::__stdcall__]]; // { dg-warning "ignored" } typedef void (T::*F) (L*) [[gnu::__stdcall__]];
void f(bool aAdd); void f(bool aAdd);
}; };
class T class T
{ {
public: public:
virtual void A(L *listener) [[gnu::__stdcall__]] = 0; // { dg-warning "ignored" } virtual void A(L *listener) [[gnu::__stdcall__]] = 0;
virtual void R(L *listener) [[gnu::__stdcall__]] = 0; // { dg-warning "ignored" } virtual void R(L *listener) [[gnu::__stdcall__]] = 0;
}; };
void P::f(bool aAdd) void P::f(bool aAdd)
{ {
......
...@@ -10,7 +10,7 @@ struct S { ...@@ -10,7 +10,7 @@ struct S {
S(const S &s) {} S(const S &s) {}
}; };
S getS() [[gnu::__stdcall__]]; // { dg-warning "ignored" } S getS() [[gnu::__stdcall__]];
void test() void test()
{ {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
// { dg-require-effective-target c++11 } // { dg-require-effective-target c++11 }
extern int * ([[gnu::stdcall]] *fooPtr)( void); // { dg-error "expected" } 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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment