summaryrefslogtreecommitdiff
path: root/test/FixIt/typo-crash.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-12-22 00:07:40 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-12-22 00:07:40 +0000
commitbfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch)
treedf8df0b0067b381eab470a3b8f28d14a552a6340 /test/FixIt/typo-crash.cpp
parent6a0372513edbc473b538d2f724efac50405d6fef (diff)
Diffstat (limited to 'test/FixIt/typo-crash.cpp')
-rw-r--r--test/FixIt/typo-crash.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/FixIt/typo-crash.cpp b/test/FixIt/typo-crash.cpp
index c154e3baba4f..4ea63c542a89 100644
--- a/test/FixIt/typo-crash.cpp
+++ b/test/FixIt/typo-crash.cpp
@@ -19,11 +19,12 @@ namespace PR12297 {
namespace B {
typedef short T;
- T global(); // expected-note {{'A::B::global' declared here}}
+ T global(); // expected-note {{'::PR12297::global' declared here}}
}
}
using namespace A::B;
- T A::global(); // expected-error {{out-of-line definition of 'global' does not match any declaration in namespace 'PR12297::A'; did you mean 'A::B::global'?}}
+ // FIXME: Adding '::PR12297::' is not needed as removing 'A::' is sufficient
+ T A::global(); // expected-error {{out-of-line declaration of 'global' does not match any declaration in namespace 'PR12297::A'; did you mean '::PR12297::global'?}}
}