projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e3010a
)
[lldb][Test][NFC] TestExternalCtorDtorLookup: add more instantiations to test linkage...
author
Michael Buch
<michaelbuch12@gmail.com>
Mon, 13 Feb 2023 12:50:31 +0000
(12:50 +0000)
committer
Michael Buch
<michaelbuch12@gmail.com>
Mon, 13 Feb 2023 12:51:05 +0000
(12:51 +0000)
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile
patch
|
blob
|
history
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp
[new file with mode: 0644]
patch
|
blob
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h
patch
|
blob
|
history
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp
patch
|
blob
|
history
diff --git
a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile
b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile
index eba15476332f9532ccb97ecea3056f84ed51e0bb..3e4cfc7e8256867b0144084b8beab5013c0e6553 100644
(file)
--- a/
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile
+++ b/
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile
@@
-1,3
+1,3
@@
-CXX_SOURCES := main.cpp
+CXX_SOURCES := main.cpp
lib.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
new file mode 100644
(file)
index 0000000..
f1724b7
--- /dev/null
+++ b/
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp
@@ -0,0
+1,3
@@
+#include "lib.h"
+
+Wrapper<Foo> getFooWrapper() { return {}; }
diff --git
a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h
b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h
index 9664068b6e141b2c9733a3941e79ba058ba02dba..1fee83fb115aac9e4b62d99d8d749eabfbc80dad 100644
(file)
--- a/
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h
+++ b/
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h
@@
-8,5
+8,8
@@
public:
[[gnu::abi_tag("test")]] ~Wrapper(){};
};
-#endif // _H_IN
+struct Foo {};
+
+Wrapper<Foo> getFooWrapper();
+#endif // _H_IN
diff --git
a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp
b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp
index 3904646c05db3817b0e521a7f64552f368c2c30b..e1caf0202d97d3706cc391cc1820c177424dd01f 100644
(file)
--- a/
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp
+++ b/
lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp
@@
-1,7
+1,5
@@
#include "lib.h"
-struct Foo {};
-
struct Bar {
Wrapper<Foo> getWrapper() { return Wrapper<Foo>(); }
int sinkWrapper(Wrapper<Foo>) { return -1; }
@@
-9,6
+7,10
@@
struct Bar {
int main() {
Bar b;
+ Wrapper<int> w1;
+ Wrapper<double> w2;
+ Wrapper<Foo> w3 = getFooWrapper();
+ Wrapper<Foo> w4;
return b.sinkWrapper(b.getWrapper());
}