2009-10-16 16:30:02 +00:00
|
|
|
// RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t
|
2009-10-16 01:57:39 +00:00
|
|
|
// RUN: FileCheck --input-file %t %s
|
|
|
|
|
|
|
|
.data
|
2012-01-28 05:57:00 +00:00
|
|
|
// CHECK: Recursive use of 't0_v0'
|
2009-10-16 01:57:39 +00:00
|
|
|
t0_v0 = t0_v0 + 1
|
|
|
|
|
|
|
|
t1_v1 = 1
|
|
|
|
t1_v1 = 2
|
|
|
|
|
|
|
|
t2_s0:
|
|
|
|
// CHECK: redefinition of 't2_s0'
|
|
|
|
t2_s0 = 2
|
|
|
|
|
|
|
|
t3_s0 = t2_s0 + 1
|
2012-03-20 21:33:21 +00:00
|
|
|
.long t3_s0
|
2009-10-16 01:57:39 +00:00
|
|
|
// CHECK: invalid reassignment of non-absolute variable 't3_s0'
|
|
|
|
t3_s0 = 1
|
2012-01-28 05:57:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
// CHECK: Recursive use of 't4_s2'
|
|
|
|
t4_s0 = t4_s1
|
|
|
|
t4_s1 = t4_s2
|
|
|
|
t4_s2 = t4_s0
|
2012-01-28 06:22:14 +00:00
|
|
|
|
|
|
|
// CHECK: Recursive use of 't5_s1'
|
|
|
|
t5_s0 = t5_s1 + 1
|
|
|
|
t5_s1 = t5_s0
|