zeek/auxil/spicy/tests/hilti/codegen/library-version.hlt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

12 lines
546 B
Plaintext

# @TEST-EXEC: hiltic -x foo %INPUT
# @TEST-EXEC: grep -q _hlt_hlto_library_version foo___linker__.cc
# @TEST-EXEC: grep -q _hlt_hlto_bind_to_version foo___linker__.cc
#
# A hand-built HLTO file has all symbols needed to load correctly.
# @TEST-EXEC: $(spicy-config --cxx --cxxflags-hlto --ldflags-hlto --debug) -o foo.hlto foo*cc
# @TEST-EXEC: hiltic -j foo.hlto
#
# @TEST-DOC: Ensure that our magic linker symbols are created with their hardcoded names, and not using the `cxx_namespace_intern` prefix; regression test for #1823.
module Foo {}