1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s -verify
2
3 template <class InputIt, class Pred>
4 bool all_of(InputIt first, Pred p);
5
load_test()6 template <typename T> void load_test() {
7 // Ensure that this doesn't crash during CorrectDelayedTyposInExpr,
8 // or any other use of TreeTransform that doesn't implement TransformDecl
9 // separately. Also, this should only error on 'output', not that 'x' is not
10 // captured.
11 // expected-error@+1 {{use of undeclared identifier 'output'}}
12 all_of(output, [](T x) { return x; });
13 }
14
main()15 int main() {
16 load_test<int>();
17 return 0;
18 }
19