diff options
| author | Kaelyn Uhrain <rikka@google.com> | 2011-09-13 22:31:32 +0000 |
|---|---|---|
| committer | Kaelyn Uhrain <rikka@google.com> | 2011-09-13 22:31:32 +0000 |
| commit | 858fb61d22a9a82704451eccddfb6baf275f8826 (patch) | |
| tree | f41dbc888206f140f17f00279b28daeb8a59c146 | |
| parent | 73b5d6ddc1938435982046f589b255c8a0e3480b (diff) | |
| download | bcm5719-llvm-858fb61d22a9a82704451eccddfb6baf275f8826.tar.gz bcm5719-llvm-858fb61d22a9a82704451eccddfb6baf275f8826.zip | |
Split the two invalid uses of the unqualified Foobar at line 3 to two lines
so that it is clearer which use triggered which error.
llvm-svn: 139653
| -rw-r--r-- | clang/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp b/clang/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp index fd0c976bdd7..85e3e7ed08f 100644 --- a/clang/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp +++ b/clang/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp @@ -1,8 +1,8 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++0x-extensions %s namespace fizbin { class Foobar; } // expected-note{{'fizbin::Foobar' declared here}} -Foobar *my_bar = new Foobar; // expected-error{{unknown type name 'Foobar'; did you mean 'fizbin::Foobar'?}} \ - // expected-error{{expected a type}} +Foobar *my_bar // expected-error{{unknown type name 'Foobar'; did you mean 'fizbin::Foobar'?}} + = new Foobar; // expected-error{{expected a type}} namespace barstool { int toFoobar() { return 1; } } // expected-note 3 {{'barstool::toFoobar' declared here}} int Double(int x) { return x + x; } |

