[flang] Fix length handling in character kind implicit conversion (#74586)
[llvm-project.git] / lldb / test / Shell / SymbolFile / NativePDB / globals-bss.cpp
blob9c65c26499cd117e850bf819ae59dc2e1767439d
1 // clang-format off
2 // REQUIRES: lld, x86
4 // Make sure we can read variables from BSS
5 // RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
6 // RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7 // RUN: llvm-readobj -S %t.exe | FileCheck --check-prefix=BSS %s
8 // RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
9 // RUN: %p/Inputs/globals-bss.lldbinit 2>&1 | FileCheck %s
11 int GlobalVariable = 0;
13 int main(int argc, char **argv) {
14 return 0;
17 // BSS: Section {
18 // BSS: Number: 3
19 // BSS: Name: .data
20 // BSS-NEXT: VirtualSize: 0x4
21 // BSS-NEXT: VirtualAddress:
22 // BSS-NEXT: RawDataSize: 0
23 // BSS-NEXT: PointerToRawData: 0x0
24 // BSS-NEXT: PointerToRelocations: 0x0
25 // BSS-NEXT: PointerToLineNumbers: 0x0
26 // BSS-NEXT: RelocationCount: 0
27 // BSS-NEXT: LineNumberCount: 0
28 // BSS-NEXT: Characteristics [ (0xC0000040)
29 // BSS-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
30 // BSS-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
31 // BSS-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000)
32 // BSS-NEXT: ]
33 // BSS-NEXT: }
35 // CHECK: (int) GlobalVariable = 0