summaryrefslogtreecommitdiff
path: root/tests/languages.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/languages.exp')
-rw-r--r--tests/languages.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/languages.exp b/tests/languages.exp
index 36d36d7..88b84c7 100644
--- a/tests/languages.exp
+++ b/tests/languages.exp
@@ -97,7 +97,7 @@ hash (register const char *str, register size_t len)
{
default:
hval += asso_values[(unsigned char)str[4]+1];
-#if defined __cplusplus && __cplusplus >= 201703L
+#if defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang_major__ && defined __clang_minor__ && __clang_major__ + (__clang_minor__ >= 9) > 3))
[[fallthrough]];
#elif defined __GNUC__ && __GNUC__ >= 7
__attribute__ ((__fallthrough__));
@@ -106,7 +106,7 @@ hash (register const char *str, register size_t len)
case 4:
case 3:
hval += asso_values[(unsigned char)str[2]];
-#if defined __cplusplus && __cplusplus >= 201703L
+#if defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang_major__ && defined __clang_minor__ && __clang_major__ + (__clang_minor__ >= 9) > 3))
[[fallthrough]];
#elif defined __GNUC__ && __GNUC__ >= 7
__attribute__ ((__fallthrough__));
@@ -114,7 +114,7 @@ hash (register const char *str, register size_t len)
/*FALLTHROUGH*/
case 2:
hval += asso_values[(unsigned char)str[1]+9];
-#if defined __cplusplus && __cplusplus >= 201703L
+#if defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang_major__ && defined __clang_minor__ && __clang_major__ + (__clang_minor__ >= 9) > 3))
[[fallthrough]];
#elif defined __GNUC__ && __GNUC__ >= 7
__attribute__ ((__fallthrough__));