Home | History | Annotate | Download | only in AsmParser
      1 // RUN: not llvm-mc -triple i386 %s -o /dev/null 2>&1 | FileCheck %s
      2 
      3 .if
      4 .endif
      5 
      6 // CHECK: error: unknown token in expression
      7 // CHECK: .if
      8 // CHECK:   ^
      9 
     10 .ifeq 0, 3
     11 .endif
     12 
     13 // CHECK:error: unexpected token in '.if' directive
     14 // CHECK: .ifeq 0, 3
     15 // CHECK:        ^
     16 
     17 .iflt "string1"
     18 .endif
     19 
     20 // CHECK: error: expected absolute expression
     21 // CHECK: .iflt "string1"
     22 // CHECK:       ^
     23 
     24 .ifge test
     25 .endif
     26 
     27 // CHECK: error: expected absolute expression
     28 // CHECK: .ifge test
     29 // CHECK:       ^
     30