1# REQUIRES: lld 2 3# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_ranges.s > %t-ranges.o 4# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_rnglists.s > %t-rnglists.o 5# RUN: ld.lld -r %t-ranges.o %t-rnglists.o -o %t 6# RUN: %lldb %t -s %s | FileCheck %s 7 8image lookup -v -s lookup_ranges 9# CHECK-LABEL: image lookup -v -s lookup_ranges 10# CHECK: Function: {{.*}} name = "ranges", range = [0x0000000000000000-0x0000000000000004) 11# CHECK: Blocks: {{.*}} range = [0x00000000-0x00000004) 12# CHECK-NEXT: {{.*}} ranges = [0x00000001-0x00000002)[0x00000003-0x00000004) 13 14image lookup -v -s lookup_rnglists 15# CHECK-LABEL: image lookup -v -s lookup_rnglists 16# CHECK: Function: {{.*}} name = "rnglists", range = [0x0000000000001000-0x0000000000001004) 17# CHECK: Blocks: {{.*}} range = [0x00001000-0x00001004) 18# CHECK-NEXT: {{.*}} ranges = [0x00001001-0x00001002)[0x00001003-0x00001004) 19