summaryrefslogtreecommitdiff
path: root/tests/java.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java.exp')
-rw-r--r--tests/java.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/java.exp b/tests/java.exp
index 7176106..bce452b 100644
--- a/tests/java.exp
+++ b/tests/java.exp
@@ -110,7 +110,7 @@ hash (str, len)
{
default:
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__));