llvm/lldb/test/Shell/SymbolFile/DWARF/x86/debug_ranges_and_rnglists.test

# REQUIRES: lld

# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_ranges.s > %t-ranges.o
# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_rnglists.s > %t-rnglists.o
# RUN: ld.lld -r %t-ranges.o %t-rnglists.o -o %t
# RUN: %lldb %t -s %s | FileCheck %s

image lookup -v -s lookup_ranges
# CHECK-LABEL: image lookup -v -s lookup_ranges
# CHECK:  Function: {{.*}} name = "ranges", range = [0x0000000000000000-0x0000000000000004)
# CHECK:    Blocks: {{.*}} range = [0x00000000-0x00000004)
# CHECK-NEXT:       {{.*}} ranges = [0x00000001-0x00000002)[0x00000003-0x00000004)

image lookup -v -s lookup_rnglists
# CHECK-LABEL: image lookup -v -s lookup_rnglists
# CHECK:  Function: {{.*}} name = "rnglists", range = [0x0000000000001000-0x0000000000001004)
# CHECK:    Blocks: {{.*}} range = [0x00001000-0x00001004)
# CHECK-NEXT:       {{.*}} ranges = [0x00001001-0x00001002)[0x00001003-0x00001004)