* 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
+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>
PR c++/91678 - wrong error with decltype and location wrapper.
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)
{
S(const S &s) {}
};
-S getS() [[gnu::__stdcall__]]; // { dg-warning "ignored" }
+S getS() [[gnu::__stdcall__]];
void test()
{
// { 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" }