aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/pre_parser.mly
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2020-07-27 19:05:27 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2020-07-27 19:05:27 +0200
commit0132b8aa669adc10e6ca953d10d5c0b861f304b1 (patch)
tree3cf2c81cdac1103492489544449b614d58186abf /cparser/pre_parser.mly
parent896310e89fd1e527d0fcf8162c50577db702fc13 (diff)
downloadcompcert-kvx-0132b8aa669adc10e6ca953d10d5c0b861f304b1.tar.gz
compcert-kvx-0132b8aa669adc10e6ca953d10d5c0b861f304b1.zip
Allow string_literals_list in _Static_assert.
Not all pre-processors concatenate string literal lists, however they are allowed in _Static_assert. This is similar to the rules for inline assembly etc.
Diffstat (limited to 'cparser/pre_parser.mly')
-rw-r--r--cparser/pre_parser.mly2
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/pre_parser.mly b/cparser/pre_parser.mly
index 6ba7ee39..4b62b235 100644
--- a/cparser/pre_parser.mly
+++ b/cparser/pre_parser.mly
@@ -610,7 +610,7 @@ gcc_attribute_word:
{}
static_assert_declaration:
-| STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON
+| STATIC_ASSERT LPAREN constant_expression COMMA string_literals_list RPAREN SEMICOLON
{}
function_specifier: