From 00e373aa73da57a47c6e4b7f4079a1841ddd2cd4 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 3 Mar 2014 06:35:00 +0000 Subject: [PATCH] AsmParser: add missed tests The diagnostics tests were missing from the previous introduction of ifeqs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202674 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/AsmParser/ifeqs-diagnostics.s | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/MC/AsmParser/ifeqs-diagnostics.s diff --git a/test/MC/AsmParser/ifeqs-diagnostics.s b/test/MC/AsmParser/ifeqs-diagnostics.s new file mode 100644 index 00000000000..1e5e8c3751f --- /dev/null +++ b/test/MC/AsmParser/ifeqs-diagnostics.s @@ -0,0 +1,22 @@ +// RUN: not llvm-mc -triple i386 %s -o /dev/null 2>&1 | FileCheck %s + +.ifeqs + +// CHECK: error: expected string parameter for '.ifeqs' directive +// CHECK: .ifeqs +// CHECK: ^ + +.ifeqs "string1" + +// CHECK: error: expected comma after first string for '.ifeqs' directive +// CHECK: .ifeqs "string1" +// CHECK: ^ + +.ifeqs "string1", + +// CHECK: error: expected string parameter for '.ifeqs' directive +// CHECK: .ifeqs "string1", +// CHECK: ^ + +// CHECK-NOT: error: unmatched .ifs or .elses +