brintos

brintos / llvm-project-archived public Read only

0
0
Text · 432 B · 646ff9f Raw
27 lines · cpp
1// RUN: %clang_cc1 %s -std=c++11 -emit-pch -o %t2// RUN: %clang_cc1 %s -std=c++11 -include-pch %t -fsyntax-only -verify3 4// expected-no-diagnostics5#ifndef HEADER6#define HEADER7 8// No crash or assertion failure on multiple nested lambdas deserialization.9template <typename T>10void b() {11  [] {12    []{13      []{14        []{15          []{16          }();17        }();18      }();19    }();20  }();21}22 23void foo() {24  b<int>();25}26#endif27