summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/catch_member_function_pointer_02.pass.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-12-02 22:14:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-12-02 22:14:59 +0000
commit366bb54f8138cb82803df75f18cfc8943f5e1b75 (patch)
tree96a29c40253c5d0b8faa64547fbd6908e5299666 /libcxxabi/test/catch_member_function_pointer_02.pass.cpp
parent9757a934a2b3d48cf8710d987f8238abae06171d (diff)
downloadbcm5719-llvm-366bb54f8138cb82803df75f18cfc8943f5e1b75.tar.gz
bcm5719-llvm-366bb54f8138cb82803df75f18cfc8943f5e1b75.zip
Check for SD-6 feature test macro when determining which tests should be
available, rather than #ifdef'ing away the relevant tests if it's unavailable. llvm-svn: 288543
Diffstat (limited to 'libcxxabi/test/catch_member_function_pointer_02.pass.cpp')
-rw-r--r--libcxxabi/test/catch_member_function_pointer_02.pass.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/libcxxabi/test/catch_member_function_pointer_02.pass.cpp b/libcxxabi/test/catch_member_function_pointer_02.pass.cpp
index 71df0516b29..5ce2359105f 100644
--- a/libcxxabi/test/catch_member_function_pointer_02.pass.cpp
+++ b/libcxxabi/test/catch_member_function_pointer_02.pass.cpp
@@ -9,12 +9,10 @@
// Can a noexcept member function pointer be caught by a non-noexcept catch
// clause?
-// UNSUPPORTED: c++98, c++03, c++11, c++14
-// UNSUPPORTED: libcxxabi-no-exceptions
+// UNSUPPORTED: libcxxabi-no-exceptions, libcxxabi-no-noexcept-function-type
#include <cassert>
-#ifdef __cpp_noexcept_function_type
struct X {
template<bool Noexcept> void f() noexcept(Noexcept) {}
};
@@ -67,6 +65,3 @@ int main()
check<true, true>();
check_deep();
}
-#else
-int main() {}
-#endif
OpenPOWER on IntegriCloud