From 1d43f8dfc3396389538cbfa1478bfeabb2f82fd0 Mon Sep 17 00:00:00 2001 From: Kaelyn Takata Date: Fri, 8 May 2015 17:39:48 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236883 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/PCH/chain-typo-corrections.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/PCH/chain-typo-corrections.cpp diff --git a/test/PCH/chain-typo-corrections.cpp b/test/PCH/chain-typo-corrections.cpp new file mode 100644 index 0000000000..4448220bba --- /dev/null +++ b/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 -- 2.50.1