Douglas Gregor | d8bba9c | 2011-06-28 16:20:02 +0000 | [diff] [blame] | 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 |
Andy Gibbs | b42f200 | 2013-04-17 08:06:46 +0000 | [diff] [blame] | 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}} |