Revert "[lldb][Test][NFC] TestExternalCtorDtorLookup: add more instantiations to...
authorMichael Buch <michaelbuch12@gmail.com>
Mon, 13 Feb 2023 18:03:44 +0000 (18:03 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Mon, 13 Feb 2023 18:09:31 +0000 (18:09 +0000)
This reverts commit 3c160d3051dc5d637bd35cfa673871338589ad8e.

This patch depends on the reverted patch in https://reviews.llvm.org/D143652

Differential Revision: https://reviews.llvm.org/D143652

lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp [deleted file]
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp

index 3e4cfc7..eba1547 100644 (file)
@@ -1,3 +1,3 @@
-CXX_SOURCES := main.cpp lib.cpp
+CXX_SOURCES := main.cpp
                        
 include Makefile.rules 
diff --git a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp
deleted file mode 100644 (file)
index f1724b7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#include "lib.h"
-
-Wrapper<Foo> getFooWrapper() { return {}; }
index 1fee83f..9664068 100644 (file)
@@ -8,8 +8,5 @@ public:
   [[gnu::abi_tag("test")]] ~Wrapper(){};
 };
 
-struct Foo {};
-
-Wrapper<Foo> getFooWrapper();
-
 #endif // _H_IN
+
index e1caf02..3904646 100644 (file)
@@ -1,5 +1,7 @@
 #include "lib.h"
 
+struct Foo {};
+
 struct Bar {
   Wrapper<Foo> getWrapper() { return Wrapper<Foo>(); }
   int sinkWrapper(Wrapper<Foo>) { return -1; }
@@ -7,10 +9,6 @@ struct Bar {
 
 int main() {
   Bar b;
-  Wrapper<int> w1;
-  Wrapper<double> w2;
-  Wrapper<Foo> w3 = getFooWrapper();
-  Wrapper<Foo> w4;
   return b.sinkWrapper(b.getWrapper());
 }