std::optional requires C++17. Instead of only running the test above
C++14, this commit removes uses of std::optional from the test (it's
already tested in block.objc.pass.mm).
//
//===----------------------------------------------------------------------===//
-// UNSUPPORTED: c++98, c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03
// REQUIRES: has-fblocks
// ADDITIONAL_COMPILE_FLAGS: -fblocks
// Make sure we report that blocks are scalar types.
#include <type_traits>
-#include <optional>
struct Foo { };
template <int> struct Arg { };
int main(int, char**) {
- // Make sure that std::optional can be used with a block, which is the
- // underlying motivation for making blocks satisfy std::is_scalar.
- std::optional<Foo (^)(Arg<0>)> opt; (void)opt;
return 0;
}