summaryrefslogtreecommitdiff
path: root/TestPrograms/test_cxx11_noexcept.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'TestPrograms/test_cxx11_noexcept.cxx')
-rw-r--r--TestPrograms/test_cxx11_noexcept.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/TestPrograms/test_cxx11_noexcept.cxx b/TestPrograms/test_cxx11_noexcept.cxx
index 68fbec43..3afcc0fd 100644
--- a/TestPrograms/test_cxx11_noexcept.cxx
+++ b/TestPrograms/test_cxx11_noexcept.cxx
@@ -2,15 +2,15 @@
# define GNUC_VERSION (__GNUC__*1000 + __GNUC_MINOR__*10)
#endif
-#if defined(__clang_major__) && defined(__apple_build_version__)
+#if defined(__clang__) && defined(__apple_build_version__)
# undef GNUC_VERSION
# define APPLE_VERSION (__clang_major__*1000 + __clang_minor__*10)
-#elif defined(__clang_major__)
+#elif defined(__clang__)
# undef GNUC_VERSION
# define LLVM_VERSION (__clang_major__*1000 + __clang_minor__*10)
#endif
-#if (GNUC_VERSION >= 4060) || (LLVM_VERSION >= 9000) || (APPLE_VERSION >= 10000)
+#if (GNUC_VERSION >= 7030)
# pragma GCC diagnostic ignored "-Wterminate"
#endif