diff options
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index d8bcfd94e3f..d6901760d33 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -1604,6 +1604,15 @@ java_lex (java_lval) SET_LVAL_NODE (null_pointer_node); return NULL_TK; + case ASSERT_TK: + if (flag_assert) + { + BUILD_OPERATOR (kw->token); + return kw->token; + } + else + break; + /* Some keyword we want to retain information on the location they where found. */ case CASE_TK: @@ -1617,7 +1626,6 @@ java_lex (java_lval) case CATCH_TK: case THROW_TK: case INSTANCEOF_TK: - case ASSERT_TK: BUILD_OPERATOR (kw->token); default: |