1 // RUN: %clang_cc1 -triple i686-windows-msvc -emit-llvm -std=c++11 -o - %s | FileCheck %s
2 
3 // Make sure that we emit H's constructor twice: once with the first lambda
4 // inside of 'lep' and again with the second lambda inside of 'lep'.
5 // CHECK-DAG: @"\01??0?$H@V<lambda_1>@?0???$lep@X@@YAXXZ@@@QAE@XZ"
6 // CHECK-DAG: @"\01??0?$H@V<lambda_2>@?0???$lep@X@@YAXXZ@@@QAE@XZ"
7 
8 template <typename>
9 struct H {
HH10   H() {}
11 };
12 
13 template <typename Fx>
K_void(const Fx &)14 int K_void(const Fx &) {
15   H<Fx> callee;
16   return 0;
17 }
18 template <typename Fx>
K_int(const Fx &)19 int K_int(const Fx &) {
20   H<Fx> callee;
21   return 0;
22 }
23 
24 struct pair {
25   pair(int, int);
26 };
27 
28 struct E1;
29 
30 template <typename>
lep()31 void lep() {
32   pair x(K_void([] {}), K_int([] {}));
33 }
34 
35 auto z = lep<void>;
36