mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
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
This commit is contained in:
12
clang/test/PCH/chain-typo-corrections.cpp
Normal file
12
clang/test/PCH/chain-typo-corrections.cpp
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user