Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / pr47804.cpp
blob3ac1de553ffc5ef99077cbda1699c2f305e6e05c
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
10 // captured.
11 // expected-error@+1 {{use of undeclared identifier 'output'}}
12 all_of(output, [](T x) { return x; });
15 int main() {
16 load_test<int>();
17 return 0;