15 lines · cpp
1// Without PCH2// RUN: %clang_cc1 -include %S/Inputs/typo.hpp -verify %s3 4// With PCH5// RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/Inputs/typo.hpp6// RUN: %clang_cc1 -include-pch %t -verify %s7 8adjacent_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 12Function<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