Home | History | Annotate | Download | only in AsmParser
      1 # RUN: not llvm-mc -triple i686-elf -filetype asm -o /dev/null %s 2>&1 \
      2 # RUN:   | FileCheck %s
      3 
      4 	.data
      5 
      6 	.global invalid_expression
      7 	.type invalid_expression,@object
      8 invalid_expression:
      9 	.rept *
     10 
     11 # CHECK: error: unknown token in expression
     12 # CHECK: 	.rept *
     13 # CHECK:              ^
     14 
     15 	.global bad_token
     16 	.type bad_token,@object
     17 bad_token:
     18 	.rept bad_token
     19 
     20 # CHECK: error: unexpected token in '.rept' directive
     21 # CHECK: 	.rept bad_token
     22 # CHECK:              ^
     23 
     24 	.global negative
     25 	.type negative,@object
     26 negative:
     27 	.rept -32
     28 
     29 # CHECK: error: Count is negative
     30 # CHECK: 	.rept -32
     31 # CHECK:              ^
     32 
     33 	.global trailer
     34 	.type trailer,@object
     35 trailer:
     36 	.rep 0 trailer
     37 
     38 # CHECK: error: unexpected token in '.rep' directive
     39 # CHECK: 	.rep 0 trailer
     40 # CHECK:               ^
     41 
     42