summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/typo-correction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/typo-correction.cpp')
-rw-r--r--clang/test/SemaCXX/typo-correction.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/typo-correction.cpp b/clang/test/SemaCXX/typo-correction.cpp
index 4f1928365f8..3b31b8db798 100644
--- a/clang/test/SemaCXX/typo-correction.cpp
+++ b/clang/test/SemaCXX/typo-correction.cpp
@@ -4,6 +4,11 @@
// afoul the hard-coded limit (escape hatch) of 20 different typos whose
// correction was attempted by Sema::CorrectTypo
+namespace PR21817{
+int a(-rsing[2]); // expected-error {{undeclared identifier 'rsing'; did you mean 'using'?}}
+ // expected-error@-1 {{expected expression}}
+}
+
struct errc {
int v_;
operator int() const {return v_;}
OpenPOWER on IntegriCloud