r247437 - [test] Specify exception object type in two tests

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 10:39:34 PDT 2015


Author: vedantk
Date: Fri Sep 11 12:39:34 2015
New Revision: 247437

URL: http://llvm.org/viewvc/llvm-project?rev=247437&view=rev
Log:
[test] Specify exception object type in two tests

Replace:
    'try { throw 0; } catch (...)'
with
    'try { throw 0; } catch (int e)'

in two test cases.

Differential Revision: http://reviews.llvm.org/D12743

Modified:
    cfe/trunk/test/CodeGenObjCXX/exception-cxx.mm
    cfe/trunk/test/CodeGenObjCXX/personality-abuse.mm

Modified: cfe/trunk/test/CodeGenObjCXX/exception-cxx.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/exception-cxx.mm?rev=247437&r1=247436&r2=247437&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/exception-cxx.mm (original)
+++ cfe/trunk/test/CodeGenObjCXX/exception-cxx.mm Fri Sep 11 12:39:34 2015
@@ -5,7 +5,7 @@ namespace test0 {
   void foo() {
     try {
       throw 0;
-    } catch (...) {
+    } catch (int e) {
       return;
     }
   }

Modified: cfe/trunk/test/CodeGenObjCXX/personality-abuse.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/personality-abuse.mm?rev=247437&r1=247436&r2=247437&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/personality-abuse.mm (original)
+++ cfe/trunk/test/CodeGenObjCXX/personality-abuse.mm Fri Sep 11 12:39:34 2015
@@ -11,7 +11,7 @@ void *abuse_personality_func() {
 void foo() {
   try {
     throw 0;
-  } catch (...) {
+  } catch (int e) {
     return;
   }
 }




More information about the cfe-commits mailing list