annotate clang/test/CodeGenCXX/pr20719.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple i686-windows-msvc -emit-llvm -std=c++11 -o - %s | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // Make sure that we emit H's constructor twice: once with the first lambda
anatofuz
parents:
diff changeset
4 // inside of 'lep' and again with the second lambda inside of 'lep'.
anatofuz
parents:
diff changeset
5 // CHECK-DAG: @"??0?$H@V<lambda_1>@?0???$lep@X@@YAXXZ@@@QAE@XZ"
anatofuz
parents:
diff changeset
6 // CHECK-DAG: @"??0?$H@V<lambda_2>@?0???$lep@X@@YAXXZ@@@QAE@XZ"
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 template <typename>
anatofuz
parents:
diff changeset
9 struct H {
anatofuz
parents:
diff changeset
10 H() {}
anatofuz
parents:
diff changeset
11 };
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 template <typename Fx>
anatofuz
parents:
diff changeset
14 int K_void(const Fx &) {
anatofuz
parents:
diff changeset
15 H<Fx> callee;
anatofuz
parents:
diff changeset
16 return 0;
anatofuz
parents:
diff changeset
17 }
anatofuz
parents:
diff changeset
18 template <typename Fx>
anatofuz
parents:
diff changeset
19 int K_int(const Fx &) {
anatofuz
parents:
diff changeset
20 H<Fx> callee;
anatofuz
parents:
diff changeset
21 return 0;
anatofuz
parents:
diff changeset
22 }
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 struct pair {
anatofuz
parents:
diff changeset
25 pair(int, int);
anatofuz
parents:
diff changeset
26 };
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 struct E1;
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 template <typename>
anatofuz
parents:
diff changeset
31 void lep() {
anatofuz
parents:
diff changeset
32 pair x(K_void([] {}), K_int([] {}));
anatofuz
parents:
diff changeset
33 }
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 auto z = lep<void>;