repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MemProf] Skip unmatched callers when cloning (#120455)
[llvm-project.git]
/
clang
/
test
/
Headers
/
crash-instantiated-in-scope-cxx-modules3.cpp
blob
646ff9f745710bb853957a912c5fe28afe87b3ae
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
3
4
// expected-no-diagnostics
5
#ifndef HEADER
6
#define HEADER
7
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
}();
21
}
22
23
void
foo
() {
24
b
<
int
>();
25
}
26
#endif