1 # REQUIRES: system-windows
3 # Checks that dependent modules preloaded by LLDB are not duplicated when the
4 # process actually loads the DLL.
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.exe
10 # 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 %s
13 # CHECK-LABEL: #before
14 # CHECK-NEXT: target modules list
15 # CHECK-NEXT: .main.exe
16 # CHECK-NEXT: .shlib.dll
19 # CHECK-NEXT: target modules list
20 # CHECK-NEXT: .main.exe
21 # CHECK-NEXT: ntdll.dll
22 # CHECK-NEXT: kernel32.dll
24 # CHECK-NOT: .shlib.dll