From: Wolfgang Bumiller Date: Wed, 1 Jan 2014 11:16:19 +0000 (+0100) Subject: definite -> last keyword; testcase updated too X-Git-Tag: xonotic-v0.8.0~24 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=5319caaaeae475878fdf31d48c021c7039b037db definite -> last keyword; testcase updated too --- diff --git a/parser.c b/parser.c index 6af6e5e..1be38a6 100644 --- a/parser.c +++ b/parser.c @@ -2822,7 +2822,7 @@ static bool parse_qualifiers(parser_t *parser, bool with_local, int *cvq, bool * { "inline", AST_FLAG_INLINE }, { "eraseable", AST_FLAG_ERASEABLE }, { "accumulate", AST_FLAG_ACCUMULATE }, - { "definite", AST_FLAG_FINAL_DECL } + { "last", AST_FLAG_FINAL_DECL } }; *cvq = CV_NONE; diff --git a/tests/final.qc b/tests/final.qc deleted file mode 100644 index e55599a..0000000 --- a/tests/final.qc +++ /dev/null @@ -1,3 +0,0 @@ -float here; -final float here; -float here; diff --git a/tests/final.tmpl b/tests/final.tmpl deleted file mode 100644 index b754123..0000000 --- a/tests/final.tmpl +++ /dev/null @@ -1,5 +0,0 @@ -I: final.qc -D: final keyword -T: -fail -C: -std=gmqcc -F: -no-defs diff --git a/tests/last.qc b/tests/last.qc new file mode 100644 index 0000000..86c5c48 --- /dev/null +++ b/tests/last.qc @@ -0,0 +1,3 @@ +float here; +[[last]] float here; +float here; diff --git a/tests/last.tmpl b/tests/last.tmpl new file mode 100644 index 0000000..c88b7d7 --- /dev/null +++ b/tests/last.tmpl @@ -0,0 +1,5 @@ +I: last.qc +D: last attribute +T: -fail +C: -std=gmqcc +F: -no-defs