[cfe-commits] r123875 - /cfe/trunk/test/Parser/cxx0x-override-control-keywords.cpp
Anders Carlsson
andersca at mac.com
Wed Jan 19 19:41:12 PST 2011
Author: andersca
Date: Wed Jan 19 21:41:12 2011
New Revision: 123875
URL: http://llvm.org/viewvc/llvm-project?rev=123875&view=rev
Log:
Add more parser tests for the override control keywords.
Modified:
cfe/trunk/test/Parser/cxx0x-override-control-keywords.cpp
Modified: cfe/trunk/test/Parser/cxx0x-override-control-keywords.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx0x-override-control-keywords.cpp?rev=123875&r1=123874&r2=123875&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx0x-override-control-keywords.cpp (original)
+++ cfe/trunk/test/Parser/cxx0x-override-control-keywords.cpp Wed Jan 19 21:41:12 2011
@@ -3,4 +3,11 @@
virtual void final() final;
virtual void override() override;
virtual void n() new;
+ int i : 3 new;
+ int j new;
+};
+
+struct T {
+ // virt-specifier-seq is only valid in member-declarators, and a function definition is not a member-declarator.
+ virtual void f() const override { } // expected-error {{expected ';' at end of declaration list}}
};
More information about the cfe-commits
mailing list