summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/typo-correction-pt2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/typo-correction-pt2.cpp')
-rw-r--r--clang/test/SemaCXX/typo-correction-pt2.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/typo-correction-pt2.cpp b/clang/test/SemaCXX/typo-correction-pt2.cpp
index e08bef0741e..e39a24bd097 100644
--- a/clang/test/SemaCXX/typo-correction-pt2.cpp
+++ b/clang/test/SemaCXX/typo-correction-pt2.cpp
@@ -234,3 +234,12 @@ class Baz {
// expected-error {{expected member name or ';' after declaration specifiers}}
};
}
+
+namespace PR18852 {
+void func() {
+ struct foo {
+ void bar() {}
+ };
+ bar(); // expected-error-re {{use of undeclared identifier 'bar'{{$}}}}
+}
+}
OpenPOWER on IntegriCloud