summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2015-05-08 17:39:48 +0000
committerKaelyn Takata <rikka@google.com>2015-05-08 17:39:48 +0000
commitc8c0de2a8991a4210ddac31c80fcff7aedef50c3 (patch)
tree37110949646182cfb4a07aeb3cabf8698072ee76
parent82fbfe684ed054523393dda26dd48077452fd2ea (diff)
downloadbcm5719-llvm-c8c0de2a8991a4210ddac31c80fcff7aedef50c3.tar.gz
bcm5719-llvm-c8c0de2a8991a4210ddac31c80fcff7aedef50c3.zip
Add the test case from PR 14044 to ensure it doesn't regress.
The test started working at some point, presumably fixed through the delayed typo correction work. llvm-svn: 236883
-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