AsmParser: add missed tests

The diagnostics tests were missing from the previous introduction of ifeqs.

llvm-svn: 202674
This commit is contained in:
Saleem Abdulrasool 2014-03-03 06:35:00 +00:00
parent 05c8dad230
commit 19dcc312ee
1 changed files with 22 additions and 0 deletions

View File

@ -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