diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-01-09 22:31:44 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-01-09 22:31:44 +0000 |
commit | 1c94c16317c1a35c1549e022958188eea2567089 (patch) | |
tree | df3c9667a969fdc0872a1ca42c5d2c54dd9fba04 /test/FixIt/fixit-cxx0x.cpp | |
parent | d1d512a9cd1923566a52e57b7e1e8ae65392f66b (diff) |
Extend the diagnostic for a ',' at the end of a declaration where a ';' was
intended to cover C++ class definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit-cxx0x.cpp')
-rw-r--r-- | test/FixIt/fixit-cxx0x.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/FixIt/fixit-cxx0x.cpp b/test/FixIt/fixit-cxx0x.cpp index b2b69b6f4b..9895c1f53c 100644 --- a/test/FixIt/fixit-cxx0x.cpp +++ b/test/FixIt/fixit-cxx0x.cpp @@ -22,4 +22,18 @@ namespace SemiCommaTypo { int m {}, n [[]], // expected-error {{expected ';' at end of declaration}} int o; + + struct Base { + virtual void f2(), f3(); + }; + struct MemberDeclarator : Base { + int k : 4, + //[[]] : 1, FIXME: test this once we support attributes here + : 9, // expected-error {{expected ';' at end of declaration}} + char c, // expected-error {{expected ';' at end of declaration}} + typedef void F(), // expected-error {{expected ';' at end of declaration}} + F f1, + f2 final, + f3 override, // expected-error {{expected ';' at end of declaration}} + }; } |