aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/ifeqs-diagnostics.s
blob: dcc43ff052e7ef9fe374694bf0198057a85bc38a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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

.ifnes

// CHECK: error: expected string parameter for '.ifnes' directive
// CHECK: .ifnes
// CHECK:       ^

.ifnes "string1"

// CHECK: error: expected comma after first string for '.ifnes' directive
// CHECK: .ifnes "string1"
// CHECK:                 ^

.ifnes "string1",

// CHECK: error: expected string parameter for '.ifnes' directive
// CHECK: .ifnes "string1",
// CHECK:                  ^