mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-21 23:30:38 +08:00
Void cast runtime-unused variables. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -112,7 +112,7 @@ int main()
|
||||
std::throw_with_nested(Final());
|
||||
assert(false);
|
||||
}
|
||||
catch (const Final &f)
|
||||
catch (const Final &)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -74,7 +74,7 @@ int main()
|
||||
throw A();
|
||||
assert(false);
|
||||
}
|
||||
catch (A& a)
|
||||
catch (A&)
|
||||
{
|
||||
std::exception_ptr p = std::current_exception();
|
||||
assert(A::constructed == 1);
|
||||
@@ -94,7 +94,7 @@ int main()
|
||||
throw A();
|
||||
assert(false);
|
||||
}
|
||||
catch (A a)
|
||||
catch (A)
|
||||
{
|
||||
std::exception_ptr p = std::current_exception();
|
||||
assert(A::constructed == 2);
|
||||
|
Reference in New Issue
Block a user