~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/MC/AsmParser/directive-err.s

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// RUN: not llvm-mc -triple i386 %s 2>&1 | FileCheck %s
 
2
 
 
3
        .err
 
4
// CHECK: error: .err encountered
 
5
// CHECK-NEXT:  .err
 
6
// CHECK-NEXT:  ^
 
7
 
 
8
        .ifc a,a
 
9
                .err
 
10
        .endif
 
11
// CHECK: error: .err encountered
 
12
// CHECK-NEXT:          .err
 
13
// CHECK-NEXT:          ^
 
14
 
 
15
        .ifnc a,a
 
16
                .err
 
17
        .endif
 
18
// CHECK-NOT: error: .err encountered
 
19
 
 
20
        .error "This is my error.  There are many like it, but this one is mine."
 
21
// CHECK: error: This is my error.  There are many like it, but this one is mine.
 
22
 
 
23
        .ifc one, two
 
24
                .error "My error is my best friend."
 
25
        .endif
 
26
// CHECK-NOT: error: My error is my best friend.
 
27
 
 
28
        .error
 
29
// CHECK: error: .error directive invoked in source file
 
30