Fix ia32 testsuite failures from C2x attributes on types
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Sun, 8 Dec 2019 10:51:58 +0000 (10:51 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Sun, 8 Dec 2019 10:51:58 +0000 (10:51 +0000)
* 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
gcc/testsuite/g++.dg/cpp0x/gen-attrs-36.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C
gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C

index 2d14412..c1b9542 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 3f0ef14..c340bf9 100644 (file)
@@ -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)
 {
index 59626b2..d84afc9 100644 (file)
@@ -10,7 +10,7 @@ struct S {
   S(const S &s) {}
 };
 
-S getS() [[gnu::__stdcall__]];  // { dg-warning "ignored" }
+S getS() [[gnu::__stdcall__]];
 
 void test()
 {
index 9c834a4..d33a535 100644 (file)
@@ -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" }