diff options
Diffstat (limited to 'tests/java.exp')
-rw-r--r-- | tests/java.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/java.exp b/tests/java.exp index 44fa7ff..7176106 100644 --- a/tests/java.exp +++ b/tests/java.exp @@ -110,6 +110,11 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[2]]; +#if defined __cplusplus && __cplusplus >= 201703L + [[fallthrough]]; +#elif defined __GNUC__ && __GNUC__ >= 7 + __attribute__ ((__fallthrough__)); +#endif /*FALLTHROUGH*/ case 2: case 1: |