variables-invalid.s 584 B

12345678910111213141516171819202122232425262728
  1. // RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t
  2. // RUN: FileCheck --input-file %t %s
  3. .data
  4. // CHECK: Recursive use of 't0_v0'
  5. t0_v0 = t0_v0 + 1
  6. t1_v1 = 1
  7. t1_v1 = 2
  8. t2_s0:
  9. // CHECK: redefinition of 't2_s0'
  10. t2_s0 = 2
  11. t3_s0 = t2_s0 + 1
  12. .long t3_s0
  13. // CHECK: invalid reassignment of non-absolute variable 't3_s0'
  14. t3_s0 = 1
  15. // CHECK: Recursive use of 't4_s2'
  16. t4_s0 = t4_s1
  17. t4_s1 = t4_s2
  18. t4_s2 = t4_s0
  19. // CHECK: Recursive use of 't5_s1'
  20. t5_s0 = t5_s1 + 1
  21. t5_s1 = t5_s0