re PR target/51934 (FAIL: g++.dg/torture/pr51344.C -O0 (test for excess errors...
authorJason Merrill <jason@redhat.com>
Mon, 23 Jan 2012 14:43:25 +0000 (09:43 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Jan 2012 14:43:25 +0000 (09:43 -0500)
PR target/51934
* g++.dg/torture/pr51344.C: Use noreturn instead of cdecl.

From-SVN: r183434

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr51344.C

index ca1ecdf5223b2f8a23c469d8c1481c86f3f997eb..ca7f6b00b3c226ca3db0738854ac9fd5ec2766e1 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-23  Jason Merrill  <jason@redhat.com>
+
+       PR target/51934
+       * g++.dg/torture/pr51344.C: Use noreturn instead of cdecl.
+
 2012-01-23  Greta Yorsh  <Greta.Yorsh@arm.com>
        * c-c++-common/tm/omp.c: Require target with pthread support.
 
index 49018325e42a3cfc764fa252a9d7db5b61ab6b36..b076fecea3303a8c1e0b47fc1e2fa6fc7209639c 100644 (file)
@@ -4,7 +4,7 @@ class A;
 template <class T>
 class B
 {
-  friend __attribute__((cdecl)) A& operator >>(A& a, B& b)
+  friend __attribute__((noreturn)) A& operator >>(A& a, B& b)
   {
     return a;
   }