r236883 - Add the test case from PR 14044 to ensure it doesn't regress.
Kaelyn Takata
rikka at google.com
Fri May 8 10:39:48 PDT 2015
Author: rikka
Date: Fri May 8 12:39:48 2015
New Revision: 236883
URL: http://llvm.org/viewvc/llvm-project?rev=236883&view=rev
Log:
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.
Added:
cfe/trunk/test/PCH/chain-typo-corrections.cpp
Added: cfe/trunk/test/PCH/chain-typo-corrections.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/chain-typo-corrections.cpp?rev=236883&view=auto
==============================================================================
--- cfe/trunk/test/PCH/chain-typo-corrections.cpp (added)
+++ cfe/trunk/test/PCH/chain-typo-corrections.cpp Fri May 8 12:39:48 2015
@@ -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 at -4 {{'Test' declared here}}
+#endif
More information about the cfe-commits
mailing list