forked from OSchip/llvm-project
Fix optional<char> test breakage
It seems GCC and clang disagree. Talked to mclow on IRC, disabling for now. llvm-svn: 333317
This commit is contained in:
parent
fa84fc916c
commit
41b4ba1f1e
|
@ -43,11 +43,15 @@ int main()
|
|||
|
||||
{
|
||||
// optional(const optional &);
|
||||
// FIXME clang and GCC disagree about this!
|
||||
// clang thinks opt is optional<optional<char>>, GCC thinks it's optional<char>.
|
||||
#if 0
|
||||
std::optional<char> source('A');
|
||||
std::optional opt(source);
|
||||
static_assert(std::is_same_v<decltype(opt), std::optional<std::optional<char>>>, "");
|
||||
assert(static_cast<bool>(opt) == static_cast<bool>(source));
|
||||
assert(*opt == *source);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue