1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s -verify
3 template <class InputIt
, class Pred
>
4 bool all_of(InputIt first
, Pred p
);
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
11 // expected-error@+1 {{use of undeclared identifier 'output'}}
12 all_of(output
, [](T x
) { return x
; });