diff --git a/tests/build/cmake-ANDROID_EXCEPTIONS/CMakeLists.txt b/tests/build/cmake-ANDROID_EXCEPTIONS/CMakeLists.txt new file mode 100644 index 00000000..16704b9d --- /dev/null +++ b/tests/build/cmake-ANDROID_EXCEPTIONS/CMakeLists.txt @@ -0,0 +1,2 @@ +cmake_minimum_required(VERSION 3.6.0) +add_executable(foo foo.cpp) \ No newline at end of file diff --git a/tests/build/cmake-ANDROID_EXCEPTIONS/foo.cpp b/tests/build/cmake-ANDROID_EXCEPTIONS/foo.cpp new file mode 100644 index 00000000..b9a3bc4e --- /dev/null +++ b/tests/build/cmake-ANDROID_EXCEPTIONS/foo.cpp @@ -0,0 +1,8 @@ +int main(int argc, char** argv) { + try { + throw 42; + } catch (const int& ex) { + return ex; + } + return 0; +} \ No newline at end of file diff --git a/tests/build/cmake-ANDROID_EXCEPTIONS/test_config.py b/tests/build/cmake-ANDROID_EXCEPTIONS/test_config.py new file mode 100644 index 00000000..1da7ea07 --- /dev/null +++ b/tests/build/cmake-ANDROID_EXCEPTIONS/test_config.py @@ -0,0 +1,5 @@ +def extra_cmake_flags(): + return ['-DANDROID_CPP_FEATURES=no-exceptions'] + +def is_negative_test(): + return True