diff options
author | Bruno Haible <bruno@clisp.org> | 2003-05-01 10:10:08 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-05-01 10:10:08 +0000 |
commit | c170151d6755c4229439882784e275f9584ab186 (patch) | |
tree | 7f0c5b6d630bf85a34baa8292e57fad03a69ead6 /tests | |
parent | ff0be608102a1ccc42211a9a55554cdb57dcde4c (diff) | |
download | gperf-c170151d6755c4229439882784e275f9584ab186.tar.gz |
Add /*FALLTHROUGH*/ comments to output.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/c-parse.exp | 1 | ||||
-rw-r--r-- | tests/charsets.exp | 11 | ||||
-rw-r--r-- | tests/chill.exp | 29 | ||||
-rw-r--r-- | tests/cplusplus.exp | 2 | ||||
-rw-r--r-- | tests/java.exp | 1 | ||||
-rw-r--r-- | tests/languages.exp | 3 | ||||
-rw-r--r-- | tests/modula2.exp | 7 | ||||
-rw-r--r-- | tests/objc.exp | 1 |
8 files changed, 55 insertions, 0 deletions
diff --git a/tests/c-parse.exp b/tests/c-parse.exp index 24bced9..fb4a3c1 100644 --- a/tests/c-parse.exp +++ b/tests/c-parse.exp @@ -86,6 +86,7 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[2]]; + /*FALLTHROUGH*/ case 2: case 1: hval += asso_values[(unsigned char)str[0]]; diff --git a/tests/charsets.exp b/tests/charsets.exp index 299674b..1d2cc18 100644 --- a/tests/charsets.exp +++ b/tests/charsets.exp @@ -95,6 +95,7 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[21]]; + /*FALLTHROUGH*/ case 21: case 20: case 19: @@ -107,24 +108,34 @@ hash (str, len) case 12: case 11: hval += asso_values[(unsigned char)str[10]+1]; + /*FALLTHROUGH*/ case 10: hval += asso_values[(unsigned char)str[9]]; + /*FALLTHROUGH*/ case 9: hval += asso_values[(unsigned char)str[8]+1]; + /*FALLTHROUGH*/ case 8: hval += asso_values[(unsigned char)str[7]+3]; + /*FALLTHROUGH*/ case 7: hval += asso_values[(unsigned char)str[6]]; + /*FALLTHROUGH*/ case 6: hval += asso_values[(unsigned char)str[5]]; + /*FALLTHROUGH*/ case 5: hval += asso_values[(unsigned char)str[4]]; + /*FALLTHROUGH*/ case 4: hval += asso_values[(unsigned char)str[3]]; + /*FALLTHROUGH*/ case 3: hval += asso_values[(unsigned char)str[2]]; + /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]+1]; + /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]]; break; diff --git a/tests/chill.exp b/tests/chill.exp index af836ee..7621d5e 100644 --- a/tests/chill.exp +++ b/tests/chill.exp @@ -84,62 +84,91 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[29]]; + /*FALLTHROUGH*/ case 29: hval += asso_values[(unsigned char)str[28]]; + /*FALLTHROUGH*/ case 28: hval += asso_values[(unsigned char)str[27]]; + /*FALLTHROUGH*/ case 27: hval += asso_values[(unsigned char)str[26]]; + /*FALLTHROUGH*/ case 26: hval += asso_values[(unsigned char)str[25]]; + /*FALLTHROUGH*/ case 25: hval += asso_values[(unsigned char)str[24]]; + /*FALLTHROUGH*/ case 24: hval += asso_values[(unsigned char)str[23]]; + /*FALLTHROUGH*/ case 23: hval += asso_values[(unsigned char)str[22]]; + /*FALLTHROUGH*/ case 22: hval += asso_values[(unsigned char)str[21]]; + /*FALLTHROUGH*/ case 21: hval += asso_values[(unsigned char)str[20]]; + /*FALLTHROUGH*/ case 20: hval += asso_values[(unsigned char)str[19]]; + /*FALLTHROUGH*/ case 19: hval += asso_values[(unsigned char)str[18]]; + /*FALLTHROUGH*/ case 18: hval += asso_values[(unsigned char)str[17]]; + /*FALLTHROUGH*/ case 17: hval += asso_values[(unsigned char)str[16]]; + /*FALLTHROUGH*/ case 16: hval += asso_values[(unsigned char)str[15]]; + /*FALLTHROUGH*/ case 15: hval += asso_values[(unsigned char)str[14]]; + /*FALLTHROUGH*/ case 14: hval += asso_values[(unsigned char)str[13]]; + /*FALLTHROUGH*/ case 13: hval += asso_values[(unsigned char)str[12]]; + /*FALLTHROUGH*/ case 12: hval += asso_values[(unsigned char)str[11]]; + /*FALLTHROUGH*/ case 11: hval += asso_values[(unsigned char)str[10]]; + /*FALLTHROUGH*/ case 10: hval += asso_values[(unsigned char)str[9]]; + /*FALLTHROUGH*/ case 9: hval += asso_values[(unsigned char)str[8]]; + /*FALLTHROUGH*/ case 8: hval += asso_values[(unsigned char)str[7]]; + /*FALLTHROUGH*/ case 7: hval += asso_values[(unsigned char)str[6]]; + /*FALLTHROUGH*/ case 6: hval += asso_values[(unsigned char)str[5]]; + /*FALLTHROUGH*/ case 5: hval += asso_values[(unsigned char)str[4]]; + /*FALLTHROUGH*/ case 4: hval += asso_values[(unsigned char)str[3]]; + /*FALLTHROUGH*/ case 3: hval += asso_values[(unsigned char)str[2]]; + /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]+1]; + /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]]; break; diff --git a/tests/cplusplus.exp b/tests/cplusplus.exp index 3c5e10b..b6f6e07 100644 --- a/tests/cplusplus.exp +++ b/tests/cplusplus.exp @@ -86,10 +86,12 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[6]]; + /*FALLTHROUGH*/ case 6: case 5: case 4: hval += asso_values[(unsigned char)str[3]]; + /*FALLTHROUGH*/ case 3: case 2: case 1: diff --git a/tests/java.exp b/tests/java.exp index 76d3b3c..e45d2ab 100644 --- a/tests/java.exp +++ b/tests/java.exp @@ -110,6 +110,7 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[2]]; + /*FALLTHROUGH*/ case 2: case 1: hval += asso_values[(unsigned char)str[0]]; diff --git a/tests/languages.exp b/tests/languages.exp index bc6b3c3..c9e6cc8 100644 --- a/tests/languages.exp +++ b/tests/languages.exp @@ -99,11 +99,14 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[4]+1]; + /*FALLTHROUGH*/ case 4: case 3: hval += asso_values[(unsigned char)str[2]]; + /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]+9]; + /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]]; break; diff --git a/tests/modula2.exp b/tests/modula2.exp index 75ee4d9..85e560e 100644 --- a/tests/modula2.exp +++ b/tests/modula2.exp @@ -83,18 +83,25 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[7]]; + /*FALLTHROUGH*/ case 7: hval += asso_values[(unsigned char)str[6]]; + /*FALLTHROUGH*/ case 6: hval += asso_values[(unsigned char)str[5]]; + /*FALLTHROUGH*/ case 5: hval += asso_values[(unsigned char)str[4]]; + /*FALLTHROUGH*/ case 4: hval += asso_values[(unsigned char)str[3]]; + /*FALLTHROUGH*/ case 3: hval += asso_values[(unsigned char)str[2]]; + /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]]; + /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]]; break; diff --git a/tests/objc.exp b/tests/objc.exp index 4d7aab3..03eb9a7 100644 --- a/tests/objc.exp +++ b/tests/objc.exp @@ -86,6 +86,7 @@ hash (str, len) { default: hval += asso_values[(unsigned char)str[2]]; + /*FALLTHROUGH*/ case 2: case 1: hval += asso_values[(unsigned char)str[0]]; |