diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
| commit | bca07a4524feb4edec581062d631a13116320a24 (patch) | |
| tree | a9243275843fbeaa590afc07ee888e006b8d54ea /test/FixIt/fixit.cpp | |
| parent | 998bc5802ecdd65ce3b270f6c69a8ae8557f0a10 (diff) | |
Notes
Diffstat (limited to 'test/FixIt/fixit.cpp')
| -rw-r--r-- | test/FixIt/fixit.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp index b9282c4d9481..41b187b0718c 100644 --- a/test/FixIt/fixit.cpp +++ b/test/FixIt/fixit.cpp @@ -51,3 +51,30 @@ namespace rdar7853795 { } }; } + +namespace rdar7796492 { + class A { int x, y; A(); }; + + A::A() + : x(1) y(2) { // expected-error{{missing ',' between base or member initializers}} + } + +} + +// extra qualification on member +class C { + int C::foo(); +}; + +namespace rdar8488464 { +int x == 0; // expected-error {{invalid '==' at end of declaration; did you mean '='?}} + +void f() { + int x == 0; // expected-error {{invalid '==' at end of declaration; did you mean '='?}} + (void)x; + if (int x == 0) { // expected-error {{invalid '==' at end of declaration; did you mean '='?}} + (void)x; + } +} +} + |
