diff options
Diffstat (limited to 'libcxx/test/libcxx/experimental/utilities/optional/use_header_warning.fail.cpp')
-rw-r--r-- | libcxx/test/libcxx/experimental/utilities/optional/use_header_warning.fail.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/experimental/utilities/optional/use_header_warning.fail.cpp b/libcxx/test/libcxx/experimental/utilities/optional/use_header_warning.fail.cpp new file mode 100644 index 00000000000..1711d2f0374 --- /dev/null +++ b/libcxx/test/libcxx/experimental/utilities/optional/use_header_warning.fail.cpp @@ -0,0 +1,18 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// REQUIRES: verify-support + +// <experimental/optional> + +#include <experimental/optional> + +// expected-error@experimental/optional:* {{"<experimental/optional> has been removed. Use <optional> instead."}} + +int main() {} |