1 # RUN: not llvm-mc -triple i386-unknown-unknown %s -I %p | FileCheck %s
2 # RUN: not llvm-mc -triple i386-unknown-unknown %s -I %p 2>&1 > /dev/null| FileCheck %s --check-prefix=CHECK-ERROR
5 .incbin "incbin\137abcd" # "\137" is underscore "_"
7 # CHECK: .ascii "abcd\n"
10 .incbin "incbin\137abcd", 1
12 # CHECK: .ascii "bcd\n"
15 .incbin "incbin\137abcd", 1, 2
20 .incbin "incbin\137abcd",, 2
25 .incbin incbin\137abcd
27 # CHECK-ERROR: error: expected string in '.incbin' directive
30 .incbin "incbin\137abcd" 1
32 # CHECK-ERROR: error: unexpected token in '.incbin' directive
35 .incbin "incbin\137abcd", 1 2
37 # CHECK-ERROR: error: unexpected token in '.incbin' directive
40 .incbin "incbin\137abcd", -1
42 # CHECK-ERROR: error: skip is negative
45 .incbin "incbin\137abcd",, -1
47 # CHECK-ERROR: warning: negative count has no effect