summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.exception
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-14 02:47:46 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-14 02:47:46 +0000
commitb2cdce480a65e19f71cca87774df92d9725f93bd (patch)
treeb57350518b4cc3ce2ed749b408a5033fa8f8457a /libcxx/test/std/language.support/support.exception
parent06d14341c5ce52e88dadf0a0e7942f89f5ad1077 (diff)
downloadbcm5719-llvm-b2cdce480a65e19f71cca87774df92d9725f93bd.tar.gz
bcm5719-llvm-b2cdce480a65e19f71cca87774df92d9725f93bd.zip
Avoid name shadowing in test. Patch from STL@microsoft.com
llvm-svn: 272618
Diffstat (limited to 'libcxx/test/std/language.support/support.exception')
-rw-r--r--libcxx/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp b/libcxx/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
index a8b6e15feab..4ee95fdf300 100644
--- a/libcxx/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
+++ b/libcxx/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
@@ -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));
}
}
}
OpenPOWER on IntegriCloud