summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/PCH/chain-typo-corrections.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/PCH/chain-typo-corrections.cpp b/clang/test/PCH/chain-typo-corrections.cpp
new file mode 100644
index 00000000000..4448220bba4
--- /dev/null
+++ b/clang/test/PCH/chain-typo-corrections.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -verify -chain-include %s %s
+
+// PR 14044
+#ifndef PASS1
+#define PASS1
+class S {
+ void f(struct Test);
+};
+#else
+::Tesy *p; // expected-error {{did you mean 'Test'}}
+ // expected-note@-4 {{'Test' declared here}}
+#endif
OpenPOWER on IntegriCloud