if-diagnostics.s 487 B

1234567891011121314151617181920212223242526272829
  1. // RUN: not llvm-mc -triple i386 %s -o /dev/null 2>&1 | FileCheck %s
  2. .if
  3. .endif
  4. // CHECK: error: unknown token in expression
  5. // CHECK: .if
  6. // CHECK: ^
  7. .ifeq 0, 3
  8. .endif
  9. // CHECK:error: unexpected token in '.if' directive
  10. // CHECK: .ifeq 0, 3
  11. // CHECK: ^
  12. .iflt "string1"
  13. .endif
  14. // CHECK: error: expected absolute expression
  15. // CHECK: .iflt "string1"
  16. // CHECK: ^
  17. .ifge test
  18. .endif
  19. // CHECK: error: expected absolute expression
  20. // CHECK: .ifge test
  21. // CHECK: ^