[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / typo2.cpp
blob9aa97bdfb177c55b8019679d26ce3bd1d2c9cff7
1 // RUN: %clang_cc1 -emit-pch %s -o %t.pch
2 // RUN: %clang_cc1 -include-pch %t.pch %s -verify
4 #ifndef HEADER_INCLUDED
5 #define HEADER_INCLUDED
7 void func(struct Test);
9 #else
11 ::Yest *T; // expected-error{{did you mean 'Test'}}
12 // expected-note@7{{'Test' declared here}}
14 #endif