File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
lldb/test/Shell/SymbolFile/DWARF Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ // LLDB currently erroneously adds an unnamed bitfield
2
+ // into the AST when an overlapping no_unique_address
3
+ // field precedes a bitfield.
4
+
5
+ // RUN: %clang --target=x86_64-apple-macosx -c -gdwarf -o %t %s
6
+ // RUN: %lldb %t \
7
+ // RUN: -o "target var global" \
8
+ // RUN: -o "image dump ast" \
9
+ // RUN: -o exit | FileCheck %s
10
+
11
+ // CHECK: (lldb) image dump ast
12
+ // CHECK: CXXRecordDecl {{.*}} struct Foo definition
13
+ // CHECK: |-FieldDecl {{.*}} data 'char[5]'
14
+ // CHECK-NEXT: |-FieldDecl {{.*}} padding 'Empty'
15
+ // CHECK-NEXT: |-FieldDecl {{.*}} 'int'
16
+ // CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 8
17
+ // CHECK-NEXT: `-FieldDecl {{.*}} sloc> flag 'unsigned long'
18
+ // CHECK-NEXT: `-IntegerLiteral {{.*}} 'int' 1
19
+
20
+ struct Empty {};
21
+
22
+ struct Foo {
23
+ char data[5 ];
24
+ [[no_unique_address]] Empty padding;
25
+ unsigned long flag : 1 ;
26
+ };
27
+
28
+ Foo global;
You can’t perform that action at this time.
0 commit comments