blob: 4c8861454d21e3b7611a797b7c08b9ce577f0beb [file] [log] [blame]
Douglas Gregord8bba9c2011-06-28 16:20:02 +00001
2// In header: expected-note{{ 'boost::function' declared here}}
3
4
5// In header: expected-note{{ 'boost::graph::adjacency_list' declared here}}
6
7
8
9adjacent_list<int, int> g; // expected-error{{no template named 'adjacent_list'; did you mean 'boost::graph::adjacency_list'?}}
10Function<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