summaryrefslogtreecommitdiffstats
path: root/libcxx/test/libcxx/experimental/strings/string.view/use_header_warning.fail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/libcxx/experimental/strings/string.view/use_header_warning.fail.cpp')
-rw-r--r--libcxx/test/libcxx/experimental/strings/string.view/use_header_warning.fail.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/experimental/strings/string.view/use_header_warning.fail.cpp b/libcxx/test/libcxx/experimental/strings/string.view/use_header_warning.fail.cpp
new file mode 100644
index 00000000000..64f73742099
--- /dev/null
+++ b/libcxx/test/libcxx/experimental/strings/string.view/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/string_view>
+
+#include <experimental/string_view>
+
+// expected-error@experimental/string_view:* {{"<experimental/string_view> has been removed. Use <string_view> instead."}}
+
+int main() {}
OpenPOWER on IntegriCloud