xref: /llvm-project/llvm/test/MC/ARM/directive-thumb_func.s (revision 8c911f8e9ae824d78930ac4fdc9ad4084a9098f2)
1@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null %s 2>&1 \
2@ RUN:    | FileCheck %s -check-prefix CHECK-EABI
3
4@ NOTE: this test ensures that both forms are accepted for MachO
5@ RUN: llvm-mc -triple armv7-darwin -filetype asm -o /dev/null %s
6
7	.syntax unified
8
9	.thumb_func
10no_suffix:
11	bx lr
12
13// CHECK-EABI: :[[#@LINE+3]]:14: error: expected newline
14// CHECK-EABI: 	.thumb_func suffix
15// CHECK-EABI:              ^
16	.thumb_func suffix
17suffix:
18	bx lr
19
20
21// CHECK-EABI-NOT: error: invalid instruction
22
23