xref: /aosp_15_r20/external/clang/test/PCH/typo.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // Without PCH
2*67e74705SXin Li // RUN: %clang_cc1 -include %S/Inputs/typo.hpp -verify %s
3*67e74705SXin Li 
4*67e74705SXin Li // With PCH
5*67e74705SXin Li // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/Inputs/typo.hpp
6*67e74705SXin Li // RUN: %clang_cc1 -include-pch %t -verify %s
7*67e74705SXin Li 
8*67e74705SXin Li adjacent_list<int, int> g;
9*67e74705SXin Li // expected-error@-1{{no template named 'adjacent_list'; did you mean 'boost::graph::adjacency_list'?}}
10*67e74705SXin Li // expected-note@Inputs/typo.hpp:5{{'boost::graph::adjacency_list' declared here}}
11*67e74705SXin Li 
12*67e74705SXin Li Function<int(int)> f;
13*67e74705SXin Li // expected-error@-1{{no template named 'Function'; did you mean 'boost::function'?}}
14*67e74705SXin Li // expected-note@Inputs/typo.hpp:2{{'boost::function' declared here}}
15