[libcxx] r272618 - Avoid name shadowing in test. Patch from STL at microsoft.com

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 19:47:46 PDT 2016


Author: ericwf
Date: Mon Jun 13 21:47:46 2016
New Revision: 272618

URL: http://llvm.org/viewvc/llvm-project?rev=272618&view=rev
Log:
Avoid name shadowing in test. Patch from STL at microsoft.com

Modified:
    libcxx/trunk/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp

Modified: libcxx/trunk/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp?rev=272618&r1=272617&r2=272618&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp Mon Jun 13 21:47:46 2016
@@ -76,9 +76,9 @@ int main()
                     std::rethrow_if_nested(a);
                     assert(false);
                 }
-                catch (const B& b)
+                catch (const B& b2)
                 {
-                    assert(b == B(5));
+                    assert(b2 == B(5));
                 }
             }
         }




More information about the cfe-commits mailing list