1! { dg-do assemble }
2! { dg-options "--abi=32 -no-mix" }
3
4! Check that we can't have different ISA:s in the same section if disallowed.
5
6	.text
7	.mode SHmedia
8start:
9	nop
10
11	.mode SHcompact
12	nop			! { dg-error "not allowed in same section" }
13
14	.section .text.other,"ax"
15	.mode SHmedia
16	nop
17
18	.mode SHcompact
19	nop			! { dg-error "not allowed in same section" }
20
21	.section .text.more,"ax"
22	.mode SHmedia
23	nop
24
25	.section .text.yetmore,"ax"
26	.mode SHcompact
27	nop
28