aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2011-09-13 22:31:32 +0000
committerKaelyn Uhrain <rikka@google.com>2011-09-13 22:31:32 +0000
commit5d35aa041b8845545e078b69492d460640166f5b (patch)
tree48aed38f20134f6c6a766a00d8e2ef274af3c172
parenteb43f4a8f133c2bc510ae136a556e92b68a6ff44 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139653 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp b/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp
index fd0c976bdd..85e3e7ed08 100644
--- a/test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp
+++ b/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; }