[SmallPtrSet] Remove SmallArray member (NFC) (#118099)
[llvm-project.git] / clang / test / CodeGenCXX / ms-local-vft-alias-comdat.cpp
blob7eaa05c02c102c0c0e0a8cd9dc347454ad7d1e4f
1 // RUN: %clang_cc1 -fcxx-exceptions -triple=x86_64-windows-msvc \
2 // RUN: -Wmicrosoft-template -fms-compatibility -emit-llvm %s -o - \
3 // RUN: | FileCheck %s
5 template <typename a> struct T {
6 virtual void c();
7 T(a h) {}
8 };
9 struct m {
10 template <typename j> void ab(j ac) {
11 using ad = T<j>;
12 ad j(ac);
15 template <typename ae> struct n {
16 template <typename j> n(j ac) { q.ab(ac); }
17 ae q;
19 class s : n<m> {
20 using ag = n<m>;
21 public:
22 template <typename j> s(j ac) : ag(ac) {}
24 struct ah {
25 ah(s);
26 } a([]{});
28 //CHECK: @0 = private unnamed_addr constant { [2 x ptr] } { [2 x ptr] [ptr @"??_R4?$T@V<lambda_0>@@@@6B@", ptr @"?c@?$T@V<lambda_0>@@@@UEAAXXZ"] }
29 //CHECK: @"??_7?$T@V<lambda_0>@@@@6B@" = internal unnamed_addr alias ptr, getelementptr inbounds ({ [2 x ptr] }, ptr @0, i32 0, i32 0, i32 1)
30 //CHECK-NOT : "??_7?$e@V<lambda_0>@@@@6B@" = comdat any