Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cxx2b-deducing-this-cc.cpp
blobbfbb24fcf23d9a92f1fdec43e91b3c82669df742
1 // RUN: %clang_cc1 -std=c++2b %s -emit-llvm -triple i386-windows-msvc -o - | FileCheck %s
3 namespace CC {
5 struct T {
6 static void f(T&);
7 void __cdecl g(this T&);
8 void __thiscall h(this T&);
9 void i(this T&);
12 void a() {
13 T t;
14 T::f(t);
16 // CHECK: define dso_local void @"?a@CC@@YAXXZ"{{.*}}
17 // CHECK: call void @"?f@T@CC@@SAXAAU12@@Z"{{.*}}
19 void b() {
20 T t;
21 t.g();
23 // CHECK: define dso_local void @"?b@CC@@YAXXZ"{{.*}}
24 // CHECK: call void @"?g@T@CC@@SAX_VAAU12@@Z"{{.*}}
26 void c() {
27 T t;
28 t.h();
30 // CHECK: define dso_local void @"?c@CC@@YAXXZ"{{.*}}
31 // CHECK: call x86_thiscallcc void @"?h@T@CC@@SEX_VAAU12@@Z"{{.*}}
33 void d() {
34 T t;
35 t.i();
37 // CHECK: define dso_local void @"?d@CC@@YAXXZ"{{.*}}
38 // CHECK: call void @"?i@T@CC@@SAX_VAAU12@@Z"{{.*}}