diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2019-05-31 18:35:30 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2019-05-31 18:35:30 +0000 |
commit | 7fc6a55688c816f5fc1a5481ae7af25be7500356 (patch) | |
tree | cac80ad839e171aa372cd03df408af1b90125db6 /libcxx/test/std/language.support/support.exception | |
parent | 065bd45da9de57668cfaabe1b851a2e08acea215 (diff) | |
download | bcm5719-llvm-7fc6a55688c816f5fc1a5481ae7af25be7500356.tar.gz bcm5719-llvm-7fc6a55688c816f5fc1a5481ae7af25be7500356.zip |
Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended.
llvm-svn: 362252
Diffstat (limited to 'libcxx/test/std/language.support/support.exception')
13 files changed, 26 insertions, 0 deletions
diff --git a/libcxx/test/std/language.support/support.exception/bad.exception/bad_exception.pass.cpp b/libcxx/test/std/language.support/support.exception/bad.exception/bad_exception.pass.cpp index e5f4fbe6dcf..b6a8f9caa1f 100644 --- a/libcxx/test/std/language.support/support.exception/bad.exception/bad_exception.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/bad.exception/bad_exception.pass.cpp @@ -12,6 +12,8 @@ #include <type_traits> #include <cassert> +#include "test_macros.h" + int main(int, char**) { static_assert((std::is_base_of<std::exception, std::bad_exception>::value), diff --git a/libcxx/test/std/language.support/support.exception/except.nested/rethrow_nested.pass.cpp b/libcxx/test/std/language.support/support.exception/except.nested/rethrow_nested.pass.cpp index 204c3b567e7..a3bf862f3f1 100644 --- a/libcxx/test/std/language.support/support.exception/except.nested/rethrow_nested.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/except.nested/rethrow_nested.pass.cpp @@ -17,6 +17,8 @@ #include <cstdlib> #include <cassert> +#include "test_macros.h" + class A { int data_; diff --git a/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp b/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp index 851d93bc0c8..debc8b42820 100644 --- a/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp @@ -12,6 +12,8 @@ #include <cstdlib> #include <cassert> +#include "test_macros.h" + void f1() {} void f2() {} diff --git a/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp b/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp index e4464b9afc1..860eddc7200 100644 --- a/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp @@ -12,6 +12,8 @@ #include <cstdlib> #include <cassert> +#include "test_macros.h" + void f1() {} void f2() {} diff --git a/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp b/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp index 2519f0bc9ce..748e71ac13b 100644 --- a/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp @@ -12,6 +12,8 @@ #include <type_traits> #include <cassert> +#include "test_macros.h" + void f() {} int main(int, char**) diff --git a/libcxx/test/std/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp b/libcxx/test/std/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp index 4243fb5cadf..f585c77d84b 100644 --- a/libcxx/test/std/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp @@ -12,6 +12,8 @@ #include <cstdlib> #include <cassert> +#include "test_macros.h" + void f1() { std::exit(0); diff --git a/libcxx/test/std/language.support/support.exception/exception/exception.pass.cpp b/libcxx/test/std/language.support/support.exception/exception/exception.pass.cpp index 893a7d5b363..1a04aca654a 100644 --- a/libcxx/test/std/language.support/support.exception/exception/exception.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/exception/exception.pass.cpp @@ -12,6 +12,8 @@ #include <type_traits> #include <cassert> +#include "test_macros.h" + int main(int, char**) { static_assert(std::is_polymorphic<std::exception>::value, diff --git a/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp b/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp index c95368163d4..de924016c4f 100644 --- a/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/propagation/current_exception.pass.cpp @@ -18,6 +18,8 @@ #include <exception> #include <cassert> +#include "test_macros.h" + struct A { static int constructed; diff --git a/libcxx/test/std/language.support/support.exception/propagation/exception_ptr.pass.cpp b/libcxx/test/std/language.support/support.exception/propagation/exception_ptr.pass.cpp index 164e7774be9..5bd11903a60 100644 --- a/libcxx/test/std/language.support/support.exception/propagation/exception_ptr.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/propagation/exception_ptr.pass.cpp @@ -15,6 +15,8 @@ #include <exception> #include <cassert> +#include "test_macros.h" + int main(int, char**) { std::exception_ptr p; diff --git a/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp b/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp index b26212fd136..8d7f6d0ead5 100644 --- a/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/propagation/make_exception_ptr.pass.cpp @@ -14,6 +14,8 @@ #include <exception> #include <cassert> +#include "test_macros.h" + struct A { static int constructed; diff --git a/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp b/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp index 015dbef224f..49c30c3be10 100644 --- a/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/propagation/rethrow_exception.pass.cpp @@ -14,6 +14,8 @@ #include <exception> #include <cassert> +#include "test_macros.h" + struct A { static int constructed; diff --git a/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exception.pass.cpp b/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exception.pass.cpp index 61cfc8f11c1..004d525521d 100644 --- a/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exception.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exception.pass.cpp @@ -12,6 +12,8 @@ #include <exception> #include <cassert> +#include "test_macros.h" + struct A { ~A() diff --git a/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exceptions.pass.cpp b/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exceptions.pass.cpp index c25e4d2e069..c498b5778ba 100644 --- a/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exceptions.pass.cpp +++ b/libcxx/test/std/language.support/support.exception/uncaught/uncaught_exceptions.pass.cpp @@ -22,6 +22,8 @@ #include <exception> #include <cassert> +#include "test_macros.h" + struct Uncaught { Uncaught(int depth) : d_(depth) {} ~Uncaught() { assert(std::uncaught_exceptions() == d_); } |