[clang] 0d8f91d - [NFC] Delete two newly-added test cases

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


Author: Roman Lebedev
Date: 2021-05-13T21:23:01+03:00
New Revision: 0d8f91d2a9994619bb62c548a81eb605f0e768f7

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

LOG: [NFC] Delete two newly-added test cases

Failing on bots in unobvious ways.

Added: 
    

Modified: 
    

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


################################################################################
diff  --git a/clang/test/CodeGenCXX/thunk-wrong-return-type.cpp b/clang/test/CodeGenCXX/thunk-wrong-return-type.cpp
deleted file mode 100644
index e12e313b7dbd..000000000000
--- a/clang/test/CodeGenCXX/thunk-wrong-return-type.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple %s -emit-llvm -o - %s | FileCheck %s
-
-struct A {};
-struct alignas(32) B : virtual A {
-  char c[32];
-};
-struct Pad {
-  char c[7];
-};
-struct C : B, Pad, virtual A {};
-
-struct X {
-  virtual A &f();
-};
-struct U {
-  virtual ~U();
-};
-C c;
-struct Y : U, X {
-  virtual B &f() override { return c; }
-};
-
-Y y;
-
-// 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
deleted file mode 100644
index 337559a52b6c..000000000000
--- a/clang/test/CodeGenCXX/thunk-wrong-this.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple %s -emit-llvm -o - %s | FileCheck %s
-
-class Base1 {
-  virtual void Foo1();
-};
-
-class Base2 {
-  virtual void Foo2();
-};
-
-class alignas(16) Obj : public Base1, public Base2 {
-  void Foo1() override;
-  void Foo2() override;
-  ~Obj();
-};
-
-void Obj::Foo1() {}
-void Obj::Foo2() {}
-
-// 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: tail call void @_ZN3Obj4Foo2Ev(%{{[^*]+}}* nonnull align 16 dereferenceable(16) %2)


        


More information about the cfe-commits mailing list