diff options
Diffstat (limited to 'llvm/test/tools/dsymutil/ARM/thumb.c')
-rw-r--r-- | llvm/test/tools/dsymutil/ARM/thumb.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/tools/dsymutil/ARM/thumb.c b/llvm/test/tools/dsymutil/ARM/thumb.c new file mode 100644 index 00000000000..4589653305a --- /dev/null +++ b/llvm/test/tools/dsymutil/ARM/thumb.c @@ -0,0 +1,13 @@ +// RUN: llvm-dsymutil -f -oso-prepend-path=%p/.. %p/../Inputs/thumb.armv7m -o - | llvm-dwarfdump - | FileCheck %s +// RUN: llvm-dsymutil -arch armv7m -f -oso-prepend-path=%p/.. %p/../Inputs/thumb.armv7m -o - | llvm-dwarfdump - | FileCheck %s + +/* Compile with: + clang -c thumb.c -arch armv7m -g + clang thumb.o -o thumb.armv7m -arch armv7m -nostdlib -static -Wl,-e,_start +*/ + +void start() { +} + +CHECK: DW_AT_name{{.*}}"thumb.c" +CHECK: DW_AT_name{{.*}}"start" |