xref: /llvm-project/llvm/test/tools/dsymutil/ARM/thumb.c (revision f1fdfe6888f93b9f6dfb4689e1f3206de584ff5b)
1 // RUN: dsymutil -f -oso-prepend-path=%p/.. %p/../Inputs/thumb.armv7m -o - | llvm-dwarfdump - | FileCheck %s
2 // RUN: dsymutil -arch armv7m -f -oso-prepend-path=%p/.. %p/../Inputs/thumb.armv7m -o - | llvm-dwarfdump - | FileCheck %s
3 
4 // RUN: dsymutil --linker parallel -f -oso-prepend-path=%p/.. \
5 // RUN:  %p/../Inputs/thumb.armv7m -o - | llvm-dwarfdump - | FileCheck %s
6 // RUN: dsymutil --linker parallel -arch armv7m -f -oso-prepend-path=%p/.. \
7 // RUN:  %p/../Inputs/thumb.armv7m -o - | llvm-dwarfdump - | FileCheck %s
8 
9 /* Compile with:
10    clang -c thumb.c -arch armv7m -g
11    clang thumb.o -o thumb.armv7m -arch armv7m -nostdlib -static -Wl,-e,_start
12 */
13 
start()14 void start() {
15 }
16 
17 CHECK: DW_AT_name{{.*}}"thumb.c"
18 CHECK: DW_AT_name{{.*}}"start"
19