]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
definite -> last keyword; testcase updated too
authorWolfgang Bumiller <wry.git@bumiller.com>
Wed, 1 Jan 2014 11:16:19 +0000 (12:16 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Wed, 1 Jan 2014 11:16:19 +0000 (12:16 +0100)
parser.c
tests/final.qc [deleted file]
tests/final.tmpl [deleted file]
tests/last.qc [new file with mode: 0644]
tests/last.tmpl [new file with mode: 0644]

index 6af6e5e996e6cc41effe4effd818579ef7044171..1be38a6f3616ad33cc905f2323fe4c54b0deb59b 100644 (file)
--- 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 (file)
index e55599a..0000000
+++ /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 (file)
index b754123..0000000
+++ /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 (file)
index 0000000..86c5c48
--- /dev/null
@@ -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 (file)
index 0000000..c88b7d7
--- /dev/null
@@ -0,0 +1,5 @@
+I: last.qc
+D: last attribute
+T: -fail
+C: -std=gmqcc
+F: -no-defs