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:
JF Bastien 2018-05-25 21:32:27 +00:00
parent fa84fc916c
commit 41b4ba1f1e
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
}