typo.cpp 594 B

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