diff options
Diffstat (limited to 'tests/cplusplus.exp')
-rw-r--r-- | tests/cplusplus.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cplusplus.exp b/tests/cplusplus.exp index 20c4471..3e4f181 100644 --- a/tests/cplusplus.exp +++ b/tests/cplusplus.exp @@ -86,7 +86,7 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[6]]; -#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__)); @@ -96,7 +96,7 @@ hash (str, len) case 5: case 4: hval += asso_values[(unsigned char)str[3]]; -#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__)); |