diff options
Diffstat (limited to 'test/MC/ARM/eh-directive-fnend-diagnostics.s')
-rw-r--r-- | test/MC/ARM/eh-directive-fnend-diagnostics.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/ARM/eh-directive-fnend-diagnostics.s b/test/MC/ARM/eh-directive-fnend-diagnostics.s new file mode 100644 index 0000000000..a5e4d3bf5b --- /dev/null +++ b/test/MC/ARM/eh-directive-fnend-diagnostics.s @@ -0,0 +1,17 @@ +@ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi \ +@ RUN: -filetype=obj -o /dev/null 2>&1 | FileCheck %s + +@ Check the diagnostics for mismatched .fnend directive + + + .syntax unified + .text + + .globl func1 + .align 2 + .type func1,%function +func1: + .fnend +@ CHECK: error: .fnstart must precede .fnend directive +@ CHECK: .fnend +@ CHECK: ^ |