diff options
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 b9282c4..41b187b 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; + } +} +} + |