aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/unwind-stack-diagnostics.s
blob: 28d5672d3aa5c75db73feed3f2f65d31b2b6c80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \
@ RUN:   | FileCheck %s

	.syntax unified
	.thumb

	.text

	.global multiple_personality_disorder
	.type multiple_personality_disorder,%function
multiple_personality_disorder:
	.fnstart
	.personality __gcc_personality_v0
	.personality __gxx_personality_v0
	.personality __gxx_personality_sj0
	.cantunwind

@ CHECK: error: .cantunwind can't be used with .personality directive
@ CHECK: .cantunwind
@ CHECK: ^
@ CHECK: note: .personality was specified here
@ CHECK: .personality __gcc_personality_v0
@ CHECK: ^
@ CHECK: note: .personality was specified here
@ CHECK: .personality __gxx_personality_v0
@ CHECK: ^
@ CHECK: note: .personality was specified here
@ CHECK: .personality __gxx_personality_sj0
@ CHECK: ^