Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Headers / crash-instantiated-in-scope-cxx-modules3.cpp
blob646ff9f745710bb853957a912c5fe28afe87b3ae
1 // RUN: %clang_cc1 %s -std=c++11 -emit-pch -o %t
2 // RUN: %clang_cc1 %s -std=c++11 -include-pch %t -fsyntax-only -verify
4 // expected-no-diagnostics
5 #ifndef HEADER
6 #define HEADER
8 // No crash or assertion failure on multiple nested lambdas deserialization.
9 template <typename T>
10 void b() {
11 [] {
12 []{
13 []{
14 []{
15 []{
16 }();
17 }();
18 }();
19 }();
20 }();
23 void foo() {
24 b<int>();
26 #endif