1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm/Testing/Support
Pavel Labath 1eb8f92f83 [Testing/Support] Make Failed() matcher work with abstract error types
Failed<ErrorInfoBase>() did not compile, because it was attempting to
create a copy of the Error object when passing it to the nested matcher,
which was not possible because ErrorInfoBase is abstract.

This commit fixes the problem by making sure we pass the ErrorInfo
object by reference, which also improves the handling of non-abstract
objects, as we avoid potentially slicing an object during the copy.

llvm-svn: 329703
2018-04-10 14:11:53 +00:00
..
Error.h [Testing/Support] Make Failed() matcher work with abstract error types 2018-04-10 14:11:53 +00:00
SupportHelpers.h [Testing/Support]: Better matching of Error failure states 2018-04-05 14:32:10 +00:00