30 lines · plain
1# RUN: not llvm-mc -triple i386-linux-gnu %s 2>&1 | FileCheck %s2 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 mode10# CHECK: error: unexpected token at start of statement11# CHECK-NEXT: <simpleCheck>:12.macro simple_check_0 name13 \name:14.endm15 16simple_check_0 <simpleCheck>17 18 19.altmacro20.noaltmacro21 22# Test #2: Switching from alternate mode to default mode23# CHECK: error: unexpected token at start of statement24# CHECK-NEXT: <simpleCheck1>:25.macro simple_check_1 name26 \name:27.endm28 29simple_check_1 <simpleCheck1>30