33 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o - | llvm-dwarfdump -verify --verify-json=%t.json -2# RUN: FileCheck %s --input-file %t.json3 4# CHECK: {"error-categories":{},"error-count":0}5 6# This test is meant to verify that the -verify option7# in llvm-dwarfdump doesn't produce any .apple_names related8# output when there's no such section in the object.9# The test was manually modified to exclude the10# .apple_names section from the apple_names_verify_num_atoms.s11# test file in the same directory.12 13 .section __TEXT,__text,regular,pure_instructions14 .file 1 "basic.c"15 .comm _i,4,2 ## @i16 .comm _j,4,2 ## @j17 .section __DWARF,__debug_str,regular,debug18Linfo_string:19 .asciz "Apple LLVM version 8.1.0 (clang-802.0.35)" ## string offset=020 .asciz "basic.c" ## string offset=4221 .asciz "/Users/sgravani/Development/tests" ## string offset=5022 .asciz "i" ## string offset=8423 .asciz "int" ## string offset=8624 .asciz "j" ## string offset=9025 26 .section __DWARF,__debug_info,regular,debug27Lsection_info:28 29.subsections_via_symbols30 .section __DWARF,__debug_line,regular,debug31Lsection_line:32Lline_table_start0:33