2009-10-17 00:30:02 +08:00
|
|
|
// RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t
|
2009-10-16 09:57:39 +08:00
|
|
|
// RUN: FileCheck --input-file %t %s
|
|
|
|
|
|
|
|
.data
|
2012-01-28 13:57:00 +08:00
|
|
|
// CHECK: Recursive use of 't0_v0'
|
2009-10-16 09:57:39 +08: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-21 05:33:21 +08:00
|
|
|
.long t3_s0
|
2009-10-16 09:57:39 +08:00
|
|
|
// CHECK: invalid reassignment of non-absolute variable 't3_s0'
|
|
|
|
t3_s0 = 1
|
2012-01-28 13:57:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
// CHECK: Recursive use of 't4_s2'
|
|
|
|
t4_s0 = t4_s1
|
|
|
|
t4_s1 = t4_s2
|
|
|
|
t4_s2 = t4_s0
|
2012-01-28 14:22:14 +08:00
|
|
|
|
|
|
|
// CHECK: Recursive use of 't5_s1'
|
|
|
|
t5_s0 = t5_s1 + 1
|
|
|
|
t5_s1 = t5_s0
|