Fix diagnostic test to tolerate Clang diagnosing it as well.
authorEric Fiselier <eric@efcs.ca>
Wed, 25 Jul 2018 11:16:39 +0000 (11:16 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 25 Jul 2018 11:16:39 +0000 (11:16 +0000)
commit1f174327d1ef2a954027ed4b021c339c49b4fb54
treec1f212fccc5db8a11d1758519017c10843c0dba5
parent6f5c6adbcd287391f313231cd5dd13a85f02c3f1
Fix diagnostic test to tolerate Clang diagnosing it as well.

Tuple has tests that ensure we diagnose non-lifetime extended
reference bindings inside tuples constructors. As of yesterday,
Clang now does this for us.

Adjust the test to tolerate the new diagnostics, while still
testing that we emit diagnostics of our own. Maybe after this
version of Clang has been adopted by most users we should
remove our diagnostics; but for now more error detection is
better!

llvm-svn: 337905
libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.fail.cpp