blob: f8161d17df4ed5dbfde200670428f8088af89162 [file] [log] [blame]
Douglas Gregord8bba9c2011-06-28 16:20:02 +00001
Richard Trieu2fe9b7f2011-12-15 00:38:15 +00002// In header: expected-note{{'boost::function' declared here}}
Douglas Gregord8bba9c2011-06-28 16:20:02 +00003
4
Richard Trieu2fe9b7f2011-12-15 00:38:15 +00005// In header: expected-note{{'boost::graph::adjacency_list' declared here}}
Douglas Gregord8bba9c2011-06-28 16:20:02 +00006
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