diff mbox

c++/58796 Make nullptr match exception handlers of pointer type

Message ID 87oa5xlxib.fsf@linux-m68k.org
State New
Headers show

Commit Message

Andreas Schwab July 16, 2016, 9:53 a.m. UTC
* g++.dg/cpp0x/nullptr35.C (caught): Fix typo.
diff mbox

Patch

diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr35.C b/gcc/testsuite/g++.dg/cpp0x/nullptr35.C
index 2f93ce1..c84966f 100644
--- a/gcc/testsuite/g++.dg/cpp0x/nullptr35.C
+++ b/gcc/testsuite/g++.dg/cpp0x/nullptr35.C
@@ -11,7 +11,7 @@  int result = 0;
 void __attribute__((noinline))
 caught(int bit)
 {
-  result &= bit;
+  result |= bit;
 }
 
 struct A { };