directive-err.s 645 B

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