1# RUN: not llvm-mc -triple i386-linux-gnu %s 2>&1 | FileCheck %s
2
3# This test checks the altmacro string delimiter '<' and '>'.
4# In this test we check the '.noaltmacro' directive.
5# We expect that '.altmacro' and '.noaltmacro' will act as a switch on/off directives to the alternate macro mode.
6# .noaltmacro returns the format into a regular macro handling.
7# The default mode is ".noaltmacro".
8
9# Test #1: default mode
10# CHECK:  error: unexpected token at start of statement
11# CHECK-NEXT: <simpleCheck>:
12.macro simple_check_0 name
13    \name:
14.endm
15
16simple_check_0 <simpleCheck>
17
18
19.altmacro
20.noaltmacro
21
22# Test #2: Switching from alternate mode to default mode
23# CHECK:  error: unexpected token at start of statement
24# CHECK-NEXT: <simpleCheck1>:
25.macro simple_check_1 name
26    \name:
27.endm
28
29simple_check_1 <simpleCheck1>
30