summaryrefslogtreecommitdiffstats
path: root/lldb/lit/SymbolFile/PDB/Inputs/UdtLayoutTest.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-09 16:38:47 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-09 16:38:47 +0000
commit22314179f0660c172514b397060fd8f34b586e82 (patch)
treeafb3f04cd285733772ffceec4ccf3d8539dca91c /lldb/lit/SymbolFile/PDB/Inputs/UdtLayoutTest.cpp
parentdf14bd315db94d286c0c75b4b6ee5d760f311399 (diff)
downloadbcm5719-llvm-22314179f0660c172514b397060fd8f34b586e82.tar.gz
bcm5719-llvm-22314179f0660c172514b397060fd8f34b586e82.zip
[test] Split LLDB tests into API, Shell & Unit
LLDB has three major testing strategies: unit tests, tests that exercise the SB API though dotest.py and what we currently call lit tests. The later is rather confusing as we're now using lit as the driver for all three types of tests. As most of this grew organically, the directory structure in the LLDB repository doesn't really make this clear. The 'lit' tests are part of the root and among these tests there's a Unit and Suite folder for the unit and dotest-tests. This layout makes it impossible to run just the lit tests. This patch changes the directory layout to match the 3 testing strategies, each with their own directory and their own configuration file. This means there are now 3 directories under lit with 3 corresponding targets: - API (check-lldb-api): Test exercising the SB API. - Shell (check-lldb-shell): Test exercising command line utilities. - Unit (check-lldb-unit): Unit tests. Finally, there's still the `check-lldb` target that runs all three test suites. Finally, this also renames the lit folder to `test` to match the LLVM repository layout. Differential revision: https://reviews.llvm.org/D68606 llvm-svn: 374184
Diffstat (limited to 'lldb/lit/SymbolFile/PDB/Inputs/UdtLayoutTest.cpp')
-rw-r--r--lldb/lit/SymbolFile/PDB/Inputs/UdtLayoutTest.cpp61
1 files changed, 0 insertions, 61 deletions
diff --git a/lldb/lit/SymbolFile/PDB/Inputs/UdtLayoutTest.cpp b/lldb/lit/SymbolFile/PDB/Inputs/UdtLayoutTest.cpp
deleted file mode 100644
index 59a4fc585d7..00000000000
--- a/lldb/lit/SymbolFile/PDB/Inputs/UdtLayoutTest.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-struct A {
- explicit A(int u) { _u._u3 = u; }
- A(const A &) = default;
- virtual ~A() = default;
-
-private:
- union U {
- char _u1;
- short _u2;
- int _u3;
- };
-
- A::U _u;
-};
-
-#pragma pack(push, 1)
-template <int I> struct B : public virtual A {
- B(char a, unsigned short b, int c) : A(a + b + c), _a(a), _b(b), _c(c) {}
-
-private:
- char _a;
- unsigned short : 3;
- unsigned short _b : 6;
- unsigned short : 4;
- int _c;
-};
-#pragma pack(pop)
-
-#pragma pack(push, 16)
-class C : private virtual B<0>, public virtual B<1>, private B<2>, public B<3> {
-public:
- C(char x, char y, char z)
- : A(x - y + z), B<0>(x, y, z), B<1>(x * 2, y * 2, z * 2),
- B<2>(x * 3, y * 3, z * 3), B<3>(x * 4, y * 4, z * 4), _x(x * 5),
- _y(y * 5), _z(z * 5) {}
-
- static int abc;
-
-private:
- int _x;
- short _y;
- char _z;
-};
-int C::abc = 123;
-#pragma pack(pop)
-
-class List {
-public:
- List() = default;
- List(List *p, List *n, C v) : Prev(p), Next(n), Value(v) {}
-
-private:
- List *Prev = nullptr;
- List *Next = nullptr;
- C Value{1, 2, 3};
-};
-
-int main() {
- List ls[16];
- return 0;
-}
OpenPOWER on IntegriCloud