summaryrefslogtreecommitdiffstats
path: root/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp')
-rw-r--r--libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp b/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp
index 6a854912857..0388cfaf7ad 100644
--- a/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp
+++ b/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp
@@ -14,9 +14,11 @@
void f() {}
-int main() {
+int main(int, char**) {
using T = std::unexpected_handler; // expected-error {{no type named 'unexpected_handler' in namespace 'std'}}
std::unexpected(); // expected-error {{no member named 'unexpected' in namespace 'std'}}
std::get_unexpected(); // expected-error {{no member named 'get_unexpected' in namespace 'std'}}
std::set_unexpected(f); // expected-error {{no type named 'set_unexpected' in namespace 'std'}}
+
+ return 0;
}
OpenPOWER on IntegriCloud