blob: fd5a113a40569b5188932acaa506a11d439b1969 [file] [edit]
# Test that module hooks fire when modules are loaded.
#
# RUN: %clang_host -g %S/Inputs/main.c -o %t
# RUN: %lldb -b -o 'file %t' \
# RUN: -o 'target hook add -L -o "script print(\"HOOK_FIRED\")"' \
# RUN: -o 'target modules add %t' \
# RUN: 2>&1 | FileCheck %s
# CHECK: Hook #1 added.
# CHECK: HOOK_FIRED