1 RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \
2 RUN: | llvm-dwarfdump -find=not_there_at_all - | \
3 RUN: FileCheck %s --check-prefix=EMPTY --allow-empty
6 RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \
7 RUN: | llvm-dwarfdump -find=main - | FileCheck %s
8 CHECK: : DW_TAG_subprogram
10 CHECK: DW_AT_name ("main")
13 RUN: llvm-dwarfdump %S/../../dsymutil/Inputs/libfat-test.a \
14 RUN: -find=x86_64h_var -find=i386_var \
15 RUN: | FileCheck %s --check-prefix=MULTI
16 MULTI: libfat-test.a(i386)
18 MULTI: : DW_TAG_variable
20 MULTI: DW_AT_name ("i386_var")
21 MULTI: libfat-test.a(x86_64h)
23 MULTI: : DW_TAG_variable
25 MULTI: DW_AT_name ("x86_64h_var")
28 RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \
29 RUN: | llvm-dwarfdump -find=int - | FileCheck %s --check-prefix=TYPES
30 TYPES: : DW_TAG_base_type
32 TYPES: DW_AT_name ("int")
35 RUN: llvm-dwarfdump %S/../../dsymutil/Inputs/odr-anon-namespace/1.o \
36 RUN: -find="(anonymous namespace)" \
37 RUN: | FileCheck %s --check-prefix=NAMESPACE
38 NAMESPACE-NOT: {{: DW}}
39 NAMESPACE: 0x0000005b: DW_TAG_namespace
40 NAMESPACE-NOT: {{: DW}}