diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-09 19:22:02 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-09 19:22:02 +0000 |
commit | 87aa9c9e4d41ed881453e2fab85b3d25f648bb55 (patch) | |
tree | 63efe79832bf3de4f63e4e81c62e73923947b882 /lldb/lit/SymbolFile/NativePDB/bitfields.cpp | |
parent | fd18e94697c987d5f24e25aa4e27adaffff3cce4 (diff) | |
download | bcm5719-llvm-87aa9c9e4d41ed881453e2fab85b3d25f648bb55.tar.gz bcm5719-llvm-87aa9c9e4d41ed881453e2fab85b3d25f648bb55.zip |
Re-land "[test] Split LLDB tests into API, Shell & Unit"
The original patch got reverted because it broke `check-lldb` on a clean
build. This fixes that.
llvm-svn: 374201
Diffstat (limited to 'lldb/lit/SymbolFile/NativePDB/bitfields.cpp')
-rw-r--r-- | lldb/lit/SymbolFile/NativePDB/bitfields.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/lldb/lit/SymbolFile/NativePDB/bitfields.cpp b/lldb/lit/SymbolFile/NativePDB/bitfields.cpp deleted file mode 100644 index 301ae3067d1..00000000000 --- a/lldb/lit/SymbolFile/NativePDB/bitfields.cpp +++ /dev/null @@ -1,60 +0,0 @@ -// clang-format off -// REQUIRES: lld - -// Test various interesting cases for AST reconstruction. -// RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s -// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \ -// RUN: %p/Inputs/bitfields.lldbinit 2>&1 | FileCheck %s - -// Test trivial versions of each tag type. -struct Struct { - int A : 5 = 6; - int B : 7 = 8; - unsigned C : 3 = 2; - unsigned D : 15 = 12345; - char E : 1 = 0; - char F : 2 = 1; - char G : 3 = 2; - // H should be at offset 0 of a new byte. - char H : 3 = 3; -}; - -constexpr Struct TheStruct; - - -int main(int argc, char **argv) { - return TheStruct.A; -} - -// CHECK: (lldb) target variable -T TheStruct -// CHECK: (const Struct) TheStruct = { -// CHECK: (int:5) A = 6 -// CHECK: (int:7) B = 8 -// CHECK: (unsigned int:3) C = 2 -// CHECK: (unsigned int:15) D = 12345 -// CHECK: (char:1) E = '\0' -// CHECK: (char:2) F = '\x01' -// CHECK: (char:3) G = '\x02' -// CHECK: (char:3) H = '\x03' -// CHECK: } -// -// CHECK: target modules dump ast -// CHECK: Dumping clang ast for 1 modules. -// CHECK: TranslationUnitDecl {{.*}} -// CHECK: |-CXXRecordDecl {{.*}} struct Struct definition -// CHECK: | |-FieldDecl {{.*}} A 'int' -// CHECK: | | `-IntegerLiteral {{.*}} 'int' 5 -// CHECK: | |-FieldDecl {{.*}} B 'int' -// CHECK: | | `-IntegerLiteral {{.*}} 'int' 7 -// CHECK: | |-FieldDecl {{.*}} C 'unsigned int' -// CHECK: | | `-IntegerLiteral {{.*}} 'int' 3 -// CHECK: | |-FieldDecl {{.*}} D 'unsigned int' -// CHECK: | | `-IntegerLiteral {{.*}} 'int' 15 -// CHECK: | |-FieldDecl {{.*}} E 'char' -// CHECK: | | `-IntegerLiteral {{.*}} 'int' 1 -// CHECK: | |-FieldDecl {{.*}} F 'char' -// CHECK: | | `-IntegerLiteral {{.*}} 'int' 2 -// CHECK: | |-FieldDecl {{.*}} G 'char' -// CHECK: | | `-IntegerLiteral {{.*}} 'int' 3 -// CHECK: | `-FieldDecl {{.*}} H 'char' -// CHECK: | `-IntegerLiteral {{.*}} 'int' 3 |