diff options
Diffstat (limited to 'tests/c-parse.exp')
-rw-r--r-- | tests/c-parse.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/c-parse.exp b/tests/c-parse.exp index 3b46a35..d88878c 100644 --- a/tests/c-parse.exp +++ b/tests/c-parse.exp @@ -86,6 +86,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: |