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