[clang] ecc4e9e - [NFC] Try to fix CodeGenCXX/thunk-wrong-return-type.cpp test

Roman Lebedev via cfe-commits cfe-commits at lists.llvm.org
Thu May 13 11:17:46 PDT 2021


Author: Roman Lebedev
Date: 2021-05-13T21:17:31+03:00
New Revision: ecc4e9e8f4cb7581cbc447bc838943176715695c

URL: https://github.com/llvm/llvm-project/commit/ecc4e9e8f4cb7581cbc447bc838943176715695c
DIFF: https://github.com/llvm/llvm-project/commit/ecc4e9e8f4cb7581cbc447bc838943176715695c.diff

LOG: [NFC] Try to fix CodeGenCXX/thunk-wrong-return-type.cpp test

Added: 
    

Modified: 
    clang/test/CodeGenCXX/thunk-wrong-return-type.cpp
    clang/test/CodeGenCXX/thunk-wrong-this.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenCXX/thunk-wrong-return-type.cpp b/clang/test/CodeGenCXX/thunk-wrong-return-type.cpp
index 53c35a44b8fe..e12e313b7dbd 100644
--- a/clang/test/CodeGenCXX/thunk-wrong-return-type.cpp
+++ b/clang/test/CodeGenCXX/thunk-wrong-return-type.cpp
@@ -22,5 +22,5 @@ struct Y : U, X {
 
 Y y;
 
-// FIXME: The return type should be  align 1 dereferenceable(1) %struct.A.8*
-// CHECK: define linkonce_odr %struct.B.1* @_ZTchn8_v0_n24_N1Y1fEv(%struct.Y.5* %this) unnamed_addr #1 comdat align 2 {
+// FIXME: The return type should be  align 1 dereferenceable(1) %{{[^*]+}}*
+// CHECK: define linkonce_odr %{{[^*]+}}* @_ZTchn8_v0_n24_N1Y1fEv(%{{[^*]+}}* %this) unnamed_addr #1 comdat align 2 {

diff  --git a/clang/test/CodeGenCXX/thunk-wrong-this.cpp b/clang/test/CodeGenCXX/thunk-wrong-this.cpp
index 824efe08b263..337559a52b6c 100644
--- a/clang/test/CodeGenCXX/thunk-wrong-this.cpp
+++ b/clang/test/CodeGenCXX/thunk-wrong-this.cpp
@@ -17,9 +17,9 @@ class alignas(16) Obj : public Base1, public Base2 {
 void Obj::Foo1() {}
 void Obj::Foo2() {}
 
-// CHECK: define {{.*}}void @_ZN3Obj4Foo2Ev(%{{.*}}* nonnull align 16 dereferenceable(16) %this) unnamed_addr #0 align 2 {
+// CHECK: define {{.*}}void @_ZN3Obj4Foo2Ev(%{{[^*]+}}* nonnull align 16 dereferenceable(16) %this) unnamed_addr #0 align 2 {
 
 // FIXME: the argument should be  %class.Base2.2* nonnull dereferenceable(8) %this
-// CHECK: define dso_local void @_ZThn8_N3Obj4Foo2Ev(%{{.*}}* %this) unnamed_addr #1 align 2 {
+// CHECK: define dso_local void @_ZThn8_N3Obj4Foo2Ev(%{{[^*]+}}* %this) unnamed_addr #1 align 2 {
 
-// CHECK: tail call void @_ZN3Obj4Foo2Ev(%{{.*}}* nonnull align 16 dereferenceable(16) %2)
+// CHECK: tail call void @_ZN3Obj4Foo2Ev(%{{[^*]+}}* nonnull align 16 dereferenceable(16) %2)


        


More information about the cfe-commits mailing list