[llvm] r202674 - AsmParser: add missed tests
Saleem Abdulrasool
compnerd at compnerd.org
Sun Mar 2 22:35:00 PST 2014
Author: compnerd
Date: Mon Mar 3 00:35:00 2014
New Revision: 202674
URL: http://llvm.org/viewvc/llvm-project?rev=202674&view=rev
Log:
AsmParser: add missed tests
The diagnostics tests were missing from the previous introduction of ifeqs.
Added:
llvm/trunk/test/MC/AsmParser/ifeqs-diagnostics.s
Added: llvm/trunk/test/MC/AsmParser/ifeqs-diagnostics.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/ifeqs-diagnostics.s?rev=202674&view=auto
==============================================================================
--- llvm/trunk/test/MC/AsmParser/ifeqs-diagnostics.s (added)
+++ llvm/trunk/test/MC/AsmParser/ifeqs-diagnostics.s Mon Mar 3 00:35:00 2014
@@ -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
+
More information about the llvm-commits
mailing list