comparison clang/test/PCH/typo.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
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
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}}