25 lines · plain
1# REQUIRES: target-windows2 3# Checks that dependent modules preloaded by LLDB are not duplicated when the4# process actually loads the DLL.5 6# RUN: %clang_host -g0 -O0 -shared %S/Inputs/shlib.c -o %t.shlib.dll \7# RUN: %if windows-msvc %{-Wl,-implib:%t.shlib.lib%} \8# RUN: %else %{-Wl,--out-implib=%t.shlib.lib%}9# RUN: %clang_host -g0 -O0 %S/Inputs/main.c %t.shlib.lib -o %t.main.exe10# RUN: %lldb -b -o "#before" -o "target modules list" -o "b main" -o run \11# RUN: -o "#after" -o "target modules list" %t.main.exe | FileCheck %s12 13# CHECK-LABEL: #before14# CHECK-NEXT: target modules list15# CHECK-NEXT: .main.exe16# CHECK-NEXT: .shlib.dll17 18# CHECK-LABEL: #after19# CHECK-NEXT: target modules list20# CHECK-NEXT: .main.exe21# CHECK-NEXT: ntdll.dll22# CHECK-NEXT: kernel32.dll23# CHECK: .shlib.dll24# CHECK-NOT: .shlib.dll25