Douglas Gregor | d8bba9c | 2011-06-28 16:20:02 +0000 | [diff] [blame] | 1 | |
Richard Trieu | 2fe9b7f | 2011-12-15 00:38:15 +0000 | [diff] [blame] | 2 | // In header: expected-note{{'boost::function' declared here}} |
Douglas Gregor | d8bba9c | 2011-06-28 16:20:02 +0000 | [diff] [blame] | 3 | |
| 4 | |
Richard Trieu | 2fe9b7f | 2011-12-15 00:38:15 +0000 | [diff] [blame] | 5 | // In header: expected-note{{'boost::graph::adjacency_list' declared here}} |
Douglas Gregor | d8bba9c | 2011-06-28 16:20:02 +0000 | [diff] [blame] | 6 | |
| 7 | |
| 8 | |
| 9 | adjacent_list<int, int> g; // expected-error{{no template named 'adjacent_list'; did you mean 'boost::graph::adjacency_list'?}} |
| 10 | Function<int(int)> f; // expected-error{{no template named 'Function'; did you mean 'boost::function'?}} |
| 11 | |
| 12 | // Without PCH |
| 13 | // RUN: %clang_cc1 -include %S/Inputs/typo.hpp -verify %s |
| 14 | |
| 15 | // With PCH |
| 16 | // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/Inputs/typo.hpp |
| 17 | // RUN: %clang_cc1 -include-pch %t -verify %s |