// RUN: %clang_cc1 -std=c++11 -fsyntax-only %s -verify
template<class InputIt,class Pred>boolall_of(InputIt first, Pred p);template<typename T>voidload_test(){// Ensure that this doesn't crash during CorrectDelayedTyposInExpr,
// or any other use of TreeTransform that doesn't implement TransformDecl
// separately. Also, this should only error on 'output', not that 'x' is not
// captured.
// expected-error@+1 {{use of undeclared identifier 'output'}}
all_of(output,[](T x){return x;});}intmain(){load_test<int>();return0;}